make-rules: implement Python Dependency Groups (PEP 735) using pyproject_installer
[oi-userland.git] / components / sysutils / net-snmp / patches / 015.6956251.vmstat_solaris2.patch
blob263a1a69b98121646e698eac71a2de51f2bdc534
1 --- net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig
2 +++ net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c
3 @@ -590,6 +590,13 @@
4 cpu_sum += (css_new->css_cpu[i] - css_old->css_cpu[i]);
7 + /*
8 + * Assign a minimum value to get around divide by zero case
9 + */
10 + if (cpu_sum == 0) {
11 + cpu_sum = 1;
12 + }
15 * Now calculate the absolute percentage values
16 * Looks somewhat complicated sometimes but tries to get around using floats to increase speed