[Goodies-dev] [Bug 15794] New: FTBFS on NetBSD due to a typo in a macro reference (patch included)

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Aug 8 00:42:37 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15794

            Bug ID: 15794
           Summary: FTBFS on NetBSD due to a typo in a macro reference
                    (patch included)
    Classification: Panel Plugins
           Product: Xfce4-cpugraph-plugin
           Version: 1.1.0
          Hardware: All
                OS: NetBSD
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: goodies-dev at xfce.org
          Reporter: dhgutteridge at hotmail.com
  Target Milestone: ---

A reference to "CPUSTATE" in panel-plugin/os.c should be "CPUSTATES" for
NetBSD. (We've actually had this patched downstream for a while, but apparently
it was never fed back to the Xfce project.)

--- panel-plugin/os.c.orig      2019-07-02 23:18:51.000000000 +0000
+++ panel-plugin/os.c
@@ -226,7 +226,7 @@ read_cpu_data (CpuData *data, guint nb_c
     data[0].load = 0;
     for (i = 1; i <= nb_cpu; i++)
     {
-        cp_time1 = cp_time + CPUSTATE * (i - 1);
+        cp_time1 = cp_time + CPUSTATES * (i - 1);
         used = cp_time1[CP_USER] + cp_time1[CP_NICE] + cp_time1[CP_SYS] +
cp_time1[CP_INTR];
         total = used + cp_time1[CP_IDLE];

(Probably redundant, but here's the definition:
https://nxr.netbsd.org/search?q=&project=src&defs=CPUSTATES&refs=&path=&hist=
.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Goodies-dev mailing list