summaryrefslogtreecommitdiff
path: root/src/ConsoleStatCalc.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-06-15 20:27:14 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-06-15 20:27:14 +0900
commit561dafc942fa3868d64707f54482d821c598493f (patch)
treefafa5ec86feca559e8970c14fbacb3a03c020c15 /src/ConsoleStatCalc.h
parente3e7a420deacdf7e0d88d21d1a7b7d5431b33bf1 (diff)
Added --truncate-console-readout option.
This option truncates console readout to fit in a single line. This is default. Give false value to this option to tell aria2 not to truncate console readout.
Diffstat (limited to 'src/ConsoleStatCalc.h')
-rw-r--r--src/ConsoleStatCalc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ConsoleStatCalc.h b/src/ConsoleStatCalc.h
index 2ee99e7f..566f7aa8 100644
--- a/src/ConsoleStatCalc.h
+++ b/src/ConsoleStatCalc.h
@@ -64,6 +64,7 @@ private:
SharedHandle<SizeFormatter> sizeFormatter_;
bool readoutVisibility_;
+ bool truncate_;
public:
ConsoleStatCalc(time_t summaryInterval, bool humanReadable = true);
@@ -75,6 +76,11 @@ public:
{
readoutVisibility_ = visibility;
}
+
+ void setTruncate(bool truncate)
+ {
+ truncate_ = truncate;
+ }
};
typedef SharedHandle<ConsoleStatCalc> ConsoleStatCalcHandle;