From 8cf8c4dac3a0f47f57e2bcb1c31b5bdee0dea727 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sun, 6 Sep 2009 21:57:19 +0200 Subject: [PATCH] move the static last_*_update variables into the function --- src/common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common.c b/src/common.c index f8f4821b..d5552c29 100644 --- a/src/common.c +++ b/src/common.c @@ -383,9 +383,6 @@ void format_seconds_short(char *buf, unsigned int n, long seconds) } } -static double last_meminfo_update; -static double last_fs_update; - unsigned long long need_mask; int no_buffers; @@ -394,6 +391,8 @@ int no_buffers; void update_stuff(void) { int i; + static double last_meminfo_update; + static double last_fs_update; info.mask = 0;