FreeBSD Bugzilla – Attachment 199648 Details for
Bug 233616
sysutils/conky: fix build with GCC-based architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
conky.patch (text/plain), 1.26 KB, created by
Piotr Kubaj
on 2018-11-28 19:02:17 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-11-28 19:02:17 UTC
Size:
1.26 KB
patch
obsolete
>Index: files/patch-src_freebsd.cc >=================================================================== >--- files/patch-src_freebsd.cc (nonexistent) >+++ files/patch-src_freebsd.cc (working copy) >@@ -0,0 +1,23 @@ >+--- src/freebsd.cc.orig 2018-11-28 18:50:47 UTC >++++ src/freebsd.cc >+@@ -78,7 +78,7 @@ std::mutex kvm_proc_mutex; >+ __attribute__((gnu_inline)) inline void >+ proc_find_top(struct process **cpu, struct process **mem, struct process **time); >+ >+-static short cpu_setup = 0; >++static short conky_cpu_setup = 0; >+ >+ static int getsysctl(const char *name, void *ptr, size_t len) >+ { >+@@ -338,9 +338,9 @@ int update_cpu_usage(void) >+ extern void* global_cpu; >+ >+ /* add check for !info.cpu_usage since that mem is freed on a SIGUSR1 */ >+- if ((cpu_setup == 0) || (!info.cpu_usage)) { >++ if ((conky_cpu_setup == 0) || (!info.cpu_usage)) { >+ get_cpu_count(); >+- cpu_setup = 1; >++ conky_cpu_setup = 1; >+ } >+ >+ if (!global_cpu) { > >Property changes on: files/patch-src_freebsd.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233616
: 199648