From 3e8aa2f2a5f51280581db99ce5c84eca3e330930 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Wed, 4 Apr 2012 17:30:44 +0000 Subject: [PATCH] treat counters as strings to avoid integer wraparounds, fixes FS#190, patch/report by Chris Daniel git-svn-id: http://www.observium.org/svn/observer/trunk@2952 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/data.php b/html/data.php index 4c53752cf1..999dded6dd 100644 --- a/html/data.php +++ b/html/data.php @@ -26,6 +26,6 @@ $out = snmp_get($device, "ifOutOctets.".$port['ifIndex'], "-OUqnv", "IF-MIB"); $time = time(); -printf("%lf|%u|%u\n", time(), $in, $out); +printf("%lf|%s|%s\n", time(), $in, $out); ?>