diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-11 03:55:03 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-11 03:55:03 +0100 |
commit | 493150c88899572fad92aa04457c90027740aca5 (patch) | |
tree | 98bdee397cb14241ddd930d18c1e96f3093e9b10 /README | |
parent | 7be560b70c17380245646a20a3bc7e96ce668b3a (diff) | |
download | vicious-legacy-493150c88899572fad92aa04457c90027740aca5.tar.xz |
uptime: merged with load widget type
Total uptime and seconds are no longer returned. Returns are now:
days, hours, minutes, load avg 1, load avg 5 and load avg 15.
Diffstat (limited to 'README')
-rw-r--r-- | README | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -152,16 +152,11 @@ vicious.widgets.thermal - takes the thermal zone as an argument, i.e. "thermal_zone0" - returns 1st value as temperature of requested thermal zone -vicious.widgets.load - - provides system load averages for the past 1, 5, and 15 minutes - - returns 1st value as load average for past 1 minute, 2nd for 5 - minutes and 3rd for 15 minutes - vicious.widgets.uptime - - provides system uptime information - - returns 1st value as total uptime, 2nd as uptime in days, 3rd as - uptime in hours, 4th as uptime in minutes and 5th as uptime in - seconds + - provides system uptime and load information + - returns 1st value as uptime in days, 2nd as uptime in hours, 3rd + as uptime in minutes, 4th as load average for past 1 minute, 5th + for 5 minutes and 6th for 15 minutes vicious.widgets.bat - provides state, charge, and remaining time for a requested battery @@ -375,7 +370,7 @@ Example uptimewidget = widget({ type = 'textbox' }) vicious.register(uptimewidget, vicious.widgets.uptime, function (widget, args) - return string.format('Uptime: %2dd %02d:%02d ', args[2], args[3], args[4]) + return string.format('Uptime: %2dd %02d:%02d ', args[1], args[2], args[3]) end, 61) - uses string.format for padding uptime values to a minimum amount |