summaryrefslogtreecommitdiff
path: root/library/statistics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/statistics.cpp')
-rw-r--r--library/statistics.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/statistics.cpp b/library/statistics.cpp
index cb68d1de..d5cce670 100644
--- a/library/statistics.cpp
+++ b/library/statistics.cpp
@@ -144,7 +144,10 @@ void Statistics::addMeasurement(int objectsCurrent, double dataCurrent)
//insert new record
if (!measurements.empty())
- measurements.insert(--measurements.end(), newEntry); //use fact that time is monotonously ascending
+ {
+ //assert(dataCurrent >= (--measurements.end())->second.data);
+ measurements.insert(--measurements.end(), newEntry); //use fact that time is monotonously ascending
+ }
else
measurements.insert(newEntry);
bgstack15