diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:07:15 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:07:15 +0200 |
commit | 8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 (patch) | |
tree | 975c6e590c31e56007006a23e7b15d0245d75b08 /library/statistics.cpp | |
parent | 3.6 (diff) | |
download | FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.gz FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.bz2 FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.zip |
3.7
Diffstat (limited to 'library/statistics.cpp')
-rw-r--r-- | library/statistics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/statistics.cpp b/library/statistics.cpp index 6e64be1c..fc140add 100644 --- a/library/statistics.cpp +++ b/library/statistics.cpp @@ -54,14 +54,14 @@ void RetrieveStatistics::writeEntry(const double value, const int objects) //######################################################################################## inline -bool isNull(const double number) +bool isNull(double number) { - return globalFunctions::abs(number) <= std::numeric_limits<double>::epsilon(); + return globalFunctions::abs(number) < std::numeric_limits<double>::epsilon(); } inline -wxString Statistics::formatRemainingTime(const double timeInMs) const +wxString Statistics::formatRemainingTime(double timeInMs) const { bool unitSec = true; double remainingTime = timeInMs / 1000; @@ -118,7 +118,7 @@ Statistics::Statistics(const int totalObjectCount, windowSizeRemTime(windowSizeRemainingTime), windowSizeBPS(windowSizeBytesPerSecond), windowMax(std::max(windowSizeRemainingTime, windowSizeBytesPerSecond)), - remainingTimeLast(256*256*256*100), //something "big" + remainingTimeLast(std::numeric_limits<int>::max()), //something "big" timer(new wxStopWatch) {} Statistics::~Statistics() |