diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2013-11-26 18:10:41 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2013-11-26 18:10:41 +0100 |
commit | 71ea0f3dbfcd358fb4c64c6450b2518092b8c449 (patch) | |
tree | d2e55474796add48aa6dc5f96dbdc5f1193d68af /README | |
parent | 211d4509c146a3224b859c3e16b609a1f769d568 (diff) | |
download | vicious-legacy-71ea0f3dbfcd358fb4c64c6450b2518092b8c449.tar.xz |
README: enable caching in vicious.widgets.cpu example
Diffstat (limited to 'README')
-rw-r--r-- | README | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -445,10 +445,12 @@ CPU usage widget cpuwidget:set_background_color("#494B4F") cpuwidget:set_color({ type = "linear", from = { 0, 0 }, to = { 50, 0 }, stops = { { 0, "#FF5656" }, { 0.5, "#88A175" }, { 1, "#AECF96" }}) + vicious.cache(vicious.widgets.cpu) vicious.register(cpuwidget, vicious.widgets.cpu, "$1", 3) - updated every 3 seconds, feeds the graph with total usage - percentage of all CPUs/cores + percentage of all CPUs/cores and enable caching of this widget + type Format functions |