Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3377:05881bf99c83 | 3378:596cfabd72c5 |
---|---|
320 MetricsRegistry::Timer::~Timer() | 320 MetricsRegistry::Timer::~Timer() |
321 { | 321 { |
322 if (active_) | 322 if (active_) |
323 { | 323 { |
324 boost::posix_time::time_duration diff = GetNow() - start_; | 324 boost::posix_time::time_duration diff = GetNow() - start_; |
325 registry_.SetValue(name_, diff.total_milliseconds(), type_); | 325 registry_.SetValue( |
326 name_, static_cast<float>(diff.total_milliseconds()), type_); | |
326 } | 327 } |
327 } | 328 } |
328 } | 329 } |