Ad Widget

Collapse

system CPU and nice CPU swapped

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcyip
    Junior Member
    • Jan 2005
    • 5

    #1

    system CPU and nice CPU swapped

    Zabbix 1.1.3

    In cpustat.c lines 340 and 341, the variables cpu_nice and cpu_system are reversed.

    cpu_nice = (float)stats.psd_cpu_time[CP_SYS];
    cpu_system = (float)stats.psd_cpu_time[CP_NICE];

    It should be

    cpu_system = (float)stats.psd_cpu_time[CP_SYS];
    cpu_nice = (float)stats.psd_cpu_time[CP_NICE];
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Fixed. Thanks for reporting this!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...