From 1d961f0d6ea149e16ef6d693c8137b45db5250f1 Mon Sep 17 00:00:00 2001 From: pbuetow Date: Mon, 2 Jul 2012 19:52:43 +0200 Subject: fix a bug --- lib/Loadbars/Main.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Loadbars') diff --git a/lib/Loadbars/Main.pm b/lib/Loadbars/Main.pm index 5a311e3..1f79a64 100644 --- a/lib/Loadbars/Main.pm +++ b/lib/Loadbars/Main.pm @@ -439,9 +439,6 @@ sub loop ($@) { $C{showcores} = !$C{showcores}; cpu_set_showcores_re; $_->kill('USR1') for @threads; - %AVGSTATS = (); - %AVGSTATS_HAS = (); - %CPUSTATS = (); $sdl_redraw_background = 1; display_info 'Toggled CPUs'; @@ -1103,6 +1100,9 @@ sub loop ($@) { if ($sdl_redraw_background) { sdl_draw_background $app, $rects; $sdl_redraw_background = 0; + %AVGSTATS = (); + %AVGSTATS_HAS = (); + %CPUSTATS = (); } auto_off_text $width; -- cgit v1.2.3