summaryrefslogtreecommitdiff
path: root/lib/statistics.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/statistics.h')
-rw-r--r--lib/statistics.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/statistics.h b/lib/statistics.h
index 718e4f19..62a30b99 100644
--- a/lib/statistics.h
+++ b/lib/statistics.h
@@ -42,6 +42,8 @@ public:
unsigned windowSizeBytesPerSecond); //time in ms
void addMeasurement(int objectsCurrent, double dataCurrent);
+ void setNewTotal(int totalObjectCount, double totalDataAmount); //may change during sync!
+
wxString getRemainingTime() const; //returns the remaining time in milliseconds
wxString getBytesPerSecond() const;
@@ -49,12 +51,12 @@ public:
void resumeTimer();
private:
- const int objectsTotal;
- const double dataTotal;
+ int objectsTotal;
+ double dataTotal;
- const unsigned windowSizeRemTime; //"window width" of statistics used for calculation of remaining time in ms
- const unsigned windowSizeBPS; //
- const unsigned windowMax;
+ const unsigned int windowSizeRemTime; //"window width" of statistics used for calculation of remaining time in ms
+ const unsigned int windowSizeBPS; //
+ const unsigned int windowMax;
struct Record
{
bgstack15