diff Core/MetricsRegistry.cpp @ 3378:596cfabd72c5

Fixed a couple of truncation warnings
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 17 May 2019 08:36:18 +0200
parents 784bbb03fb54
children 94f4a18a79cc
line wrap: on
line diff
--- a/Core/MetricsRegistry.cpp	Thu May 16 12:31:47 2019 +0200
+++ b/Core/MetricsRegistry.cpp	Fri May 17 08:36:18 2019 +0200
@@ -322,7 +322,8 @@
     if (active_)
     {   
       boost::posix_time::time_duration diff = GetNow() - start_;
-      registry_.SetValue(name_, diff.total_milliseconds(), type_);
+      registry_.SetValue(
+        name_, static_cast<float>(diff.total_milliseconds()), type_);
     }
   }
 }