From 1715bb221ae7d2d3db40e2a122bba9efdb836a2f Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Wed, 13 Nov 2013 08:47:51 +0000 Subject: [PATCH] . increase CPU granularity from 1 sec. to 2 sec. to get more smooth results (the same difference as with "top -s1" vs "top -s2", look at idle state); . bump PORTREVISION. --- x11/fbpanel/Makefile | 2 +- x11/fbpanel/files/patch-plugins__cpu__cpu.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/x11/fbpanel/Makefile b/x11/fbpanel/Makefile index 70f31822691e..d7422da1e6a3 100644 --- a/x11/fbpanel/Makefile +++ b/x11/fbpanel/Makefile @@ -3,7 +3,7 @@ PORTNAME= fbpanel PORTVERSION= 6.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11 MASTER_SITES= SF EXTRACT_SUFX= .tbz2 diff --git a/x11/fbpanel/files/patch-plugins__cpu__cpu.c b/x11/fbpanel/files/patch-plugins__cpu__cpu.c index 8c50bd994d13..6d78053ace25 100644 --- a/x11/fbpanel/files/patch-plugins__cpu__cpu.c +++ b/x11/fbpanel/files/patch-plugins__cpu__cpu.c @@ -82,3 +82,12 @@ #else static int cpu_get_load(cpu_priv *c) +@@ -109,7 +173,7 @@ + k->set_rows(&c->chart, 1, c->colors); + gtk_widget_set_tooltip_markup(((plugin_instance *)c)->pwid, "Cpu"); + cpu_get_load(c); +- c->timer = g_timeout_add(1000, (GSourceFunc) cpu_get_load, (gpointer) c); ++ c->timer = g_timeout_add(2000, (GSourceFunc) cpu_get_load, (gpointer) c); + RET(1); + } +