Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 371546 Details for
Bug 503198
net-analyzer/nagios-plugins-snmp - check_snmp_storage shows wrong percent
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to address integer overflow in check_snmp_storage
nagios-plugins-snmp-0.6.0-wrong-percent.patch (text/plain), 793 bytes, created by
Johan Ymerson
on 2014-03-02 12:23:56 UTC
(
hide
)
Description:
Patch to address integer overflow in check_snmp_storage
Filename:
MIME Type:
Creator:
Johan Ymerson
Created:
2014-03-02 12:23:56 UTC
Size:
793 bytes
patch
obsolete
>diff -ruN nagios-plugins-snmp.orig/src/check_snmp_storage.c nagios-plugins-snmp/src/check_snmp_storage.c >--- nagios-plugins-snmp.orig/src/check_snmp_storage.c 2007-06-01 19:30:51.000000000 +0200 >+++ nagios-plugins-snmp/src/check_snmp_storage.c 2014-03-02 12:43:37.068464200 +0100 >@@ -535,7 +535,7 @@ > if (o_sum!=1) { > to=(double) storage_state[i].size * ( ( 100.0 - o_reserve ) / 100.0 ) * storage_state[i].alloc_unit / output_metric_val; > if (storage_state[i].size != 0) { >- pu=storage_state[i].used * 100 / (storage_state[i].size* ( 100.0 - o_reserve ) / 100.0 ); >+ pu=storage_state[i].used * 100.0 / (storage_state[i].size* ( 100.0 - o_reserve ) / 100.0 ); > } else > pu=0; > bu=(double)storage_state[i].used * storage_state[i].alloc_unit / output_metric_val;
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 503198
: 371546