You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/07/13 02:18:50 UTC

git commit: Fixed a compilation issue with Stopwatch on Linux.

Updated Branches:
  refs/heads/master b98892875 -> b94026218


Fixed a compilation issue with Stopwatch on Linux.

Review: https://reviews.apache.org/r/12533


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b9402621
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b9402621
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b9402621

Branch: refs/heads/master
Commit: b940262181086a209ac897af923d879dd2c17768
Parents: b988928
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Fri Jul 12 16:37:59 2013 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Fri Jul 12 16:38:07 2013 -0700

----------------------------------------------------------------------
 .../libprocess/3rdparty/stout/include/stout/stopwatch.hpp   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b9402621/3rdparty/libprocess/3rdparty/stout/include/stout/stopwatch.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/stopwatch.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/stopwatch.hpp
index bcff8c6..97e3469 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/stopwatch.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/stopwatch.hpp
@@ -15,7 +15,14 @@
 class Stopwatch
 {
 public:
-  Stopwatch() : running(false) { started.tv_sec = 0; started.tv_nsec = 0; }
+  Stopwatch()
+    : running(false)
+  {
+    started.tv_sec = 0;
+    started.tv_nsec = 0;
+    stopped.tv_sec = 0;
+    stopped.tv_nsec = 0;
+  }
 
   void start()
   {