mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
move the static last_*_update variables into the function
This commit is contained in:
parent
5a3b7c074b
commit
8cf8c4dac3
@ -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;
|
unsigned long long need_mask;
|
||||||
int no_buffers;
|
int no_buffers;
|
||||||
|
|
||||||
@ -394,6 +391,8 @@ int no_buffers;
|
|||||||
void update_stuff(void)
|
void update_stuff(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
static double last_meminfo_update;
|
||||||
|
static double last_fs_update;
|
||||||
|
|
||||||
info.mask = 0;
|
info.mask = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user