summaryrefslogtreecommitdiff
path: root/lib/statistics.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
commit237aedc590b58c0e69d7dfcac92b5f767b7c004a (patch)
tree83f361a82ba483f2daf83b677e8685cd953812d9 /lib/statistics.h
parent4.5 (diff)
downloadFreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.gz
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.bz2
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.zip
4.6
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