From 71ea0f3dbfcd358fb4c64c6450b2518092b8c449 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 26 Nov 2013 18:10:41 +0100 Subject: README: enable caching in vicious.widgets.cpu example --- README | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index 79c40bd..24be226 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3