summaryrefslogtreecommitdiffstats
path: root/xmrstak/misc/telemetry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmrstak/misc/telemetry.cpp')
-rw-r--r--xmrstak/misc/telemetry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmrstak/misc/telemetry.cpp b/xmrstak/misc/telemetry.cpp
index 28fb522..a3a2a12 100644
--- a/xmrstak/misc/telemetry.cpp
+++ b/xmrstak/misc/telemetry.cpp
@@ -89,8 +89,8 @@ double telemetry::calc_telemetry_data(size_t iLastMilisec, size_t iThread)
return nan("");
double fHashes, fTime;
- fHashes = iLastestHashCnt - iEarliestHashCnt;
- fTime = iLastestStamp - iEarliestStamp;
+ fHashes = static_cast<double>(iLastestHashCnt - iEarliestHashCnt);
+ fTime = static_cast<double>(iLastestStamp - iEarliestStamp);
fTime /= 1000.0;
return fHashes / fTime;
OpenPOWER on IntegriCloud