diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2014-08-12 10:00:04 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2014-08-12 10:00:04 +0200 |
| commit | 39266f2f01350caf1025869cbef1d0362b66adc8 (patch) | |
| tree | e854c4256f731bb7975153f5935e4c1bb5958aef | |
| parent | 3513cd9bd25c1e9eea68fc240977a3a9407fc229 (diff) | |
adjust output of net_rate module since we always devide 4 digits numbers, 1s cache is definitely too low
| -rw-r--r-- | modules/net_rate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/net_rate.py b/modules/net_rate.py index 6e5d40e..e8c0f1d 100644 --- a/modules/net_rate.py +++ b/modules/net_rate.py @@ -11,7 +11,7 @@ Module for displaying current network transfer rate. @license Eclipse Public License """ -CACHED_TIME = 1 # update time (in seconds) +CACHED_TIME = 2 # update time (in seconds) POSITION = 0 # bar position DEVFILE = "/proc/net/dev" # location of dev file under /proc @@ -33,7 +33,7 @@ FORMAT = "{interface}: {total}" PRECISION = 1 # amount of numbers after dot MULTIPLIER_TOP = 1024 # if value is greater, divide it with UNIT_MULTI and get next unit from UNITS -LEFT_ALIGN = len(str(MULTIPLIER_TOP)) + 1 + PRECISION # == 6 characters (from MULTIPLIER_TOP + dot + PRECISION) +LEFT_ALIGN = len(str(MULTIPLIER_TOP)) + PRECISION # == 5 characters (from MULTIPLIER_TOP + PRECISION) """ Format of total, up and down placeholders under FORMAT. |
