diff options
Diffstat (limited to 'minethd.cpp')
-rw-r--r-- | minethd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/minethd.cpp b/minethd.cpp index 00cafc3..5951035 100644 --- a/minethd.cpp +++ b/minethd.cpp @@ -105,6 +105,10 @@ double telemetry::calc_telemetry_data(size_t iLastMilisec, size_t iThread) if (!bHaveFullSet || iEarliestStamp == 0 || iLastestStamp == 0) return nan(""); + //Don't think that can happen, but just in case + if (iLastestStamp - iEarliestStamp == 0) + return nan(""); + double fHashes, fTime; fHashes = iLastestHashCnt - iEarliestHashCnt; fTime = iLastestStamp - iEarliestStamp; |