diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-03 12:53:30 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-03 12:53:30 +0100 |
commit | e14ce09f4566426f781e5e6ab3242b814aa4c256 (patch) | |
tree | bc2e53d28ca51b11d26482a8f28a74ba120c40c9 /examples | |
parent | m (diff) | |
download | xpybar-e14ce09f4566426f781e5e6ab3242b814aa4c256.tar.gz xpybar-e14ce09f4566426f781e5e6ab3242b814aa4c256.tar.bz2 xpybar-e14ce09f4566426f781e5e6ab3242b814aa4c256.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plugin-test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/plugin-test b/examples/plugin-test index d167eb3..619b6f5 100644 --- a/examples/plugin-test +++ b/examples/plugin-test @@ -25,12 +25,12 @@ def redraw(): date = spawn_read('date', '+%Y-(%m)%b-%d %T, %a w%V, %Z') uptime_ = Uptime() - uptime = '%id %02i:%02i:%0.2f' % uptime_.uptime + uptime = '%id %02i:%02i:%05.2f' % uptime_.uptime prc_idle = uptime_.average_idle_seconds / uptime_.uptime_seconds - tot_idle = '%id %02i:%02i:%0.2f' % uptime_.total_idle - avg_idle = '%id %02i:%02i:%0.2f' % uptime_.average_idle + tot_idle = '%id %02i:%02i:%05.2f' % uptime_.total_idle + avg_idle = '%id %02i:%02i:%05.2f' % uptime_.average_idle uptime = 'Uptime: %s' % (uptime) - idle = 'Idle time: %s : %s : %1.2f%%' % (avg_idle, tot_idle, prc_idle * 100) + idle = 'Idle time: %s : %s : %4.2f%%' % (avg_idle, tot_idle, prc_idle * 100) loadavg_ = AverageLoad() avg_5 = int(loadavg_.average_avg_5_min * 100) |