mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
Fix build on FreeBSD.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@756 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
4d3891e76d
commit
112253e474
@ -290,7 +290,7 @@ update_cpu_usage()
|
||||
size_t len = sizeof (cp_time);
|
||||
|
||||
/* add check for !info.cpu_usage since that mem is freed on a SIGUSR1 */
|
||||
if ((cpu_setup == 0)) || (!info.cpu_usage) {
|
||||
if ((cpu_setup == 0) || (!info.cpu_usage)) {
|
||||
get_cpu_count();
|
||||
cpu_setup = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user