View | Details | Raw Unified | Return to bug 233616
Collapse All | Expand All

(-)files/patch-src_freebsd.cc (+23 lines)
Line 0 Link Here
1
--- src/freebsd.cc.orig	2018-11-28 18:50:47 UTC
2
+++ src/freebsd.cc
3
@@ -78,7 +78,7 @@ std::mutex kvm_proc_mutex;
4
 __attribute__((gnu_inline)) inline void
5
 proc_find_top(struct process **cpu, struct process **mem, struct process **time);
6
 
7
-static short cpu_setup = 0;
8
+static short conky_cpu_setup = 0;
9
 
10
 static int getsysctl(const char *name, void *ptr, size_t len)
11
 {
12
@@ -338,9 +338,9 @@ int update_cpu_usage(void)
13
 	extern void* global_cpu;
14
 
15
 	/* add check for !info.cpu_usage since that mem is freed on a SIGUSR1 */
16
-	if ((cpu_setup == 0) || (!info.cpu_usage)) {
17
+	if ((conky_cpu_setup == 0) || (!info.cpu_usage)) {
18
 		get_cpu_count();
19
-		cpu_setup = 1;
20
+		conky_cpu_setup = 1;
21
 	}
22
 
23
 	if (!global_cpu) {

Return to bug 233616