fix bug where mempool >2GB was broken. (i blame sid3windr for this, he was probably distracting me with talk of printers or something)

git-svn-id: http://www.observium.org/svn/observer/trunk@1047 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-03-26 18:30:27 +00:00
parent 6d881f3a23
commit 152dc52b4e
3 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ function discover_mempool(&$valid_mempool, $device, $index, $type, $descr, $prec
{
echo(".");
# entry = mysql_fetch_assoc(mysql_query());
$query = "UPDATE `mempools` SET `mempool_descr` = '".$descr."', `entPhysicalIndex` = '$entPhysicalIndex', `hrDeviceIndex` = '$hrDeviceIndex' WHERE `device_id` = '".$device['device_id']."' AND `mempool_index` = '".$index."' AND `mempool_type` = '".$type."'";
$query = "UPDATE `mempools` SET `mempool_descr` = '".$descr."', `entPhysicalIndex` = '".$entPhysicalIndex."'"'
$query .= ", `hrDeviceIndex` = '$hrDeviceIndex' ";
$query .= "WHERE `device_id` = '".$device['device_id']."' AND `mempool_index` = '".$index."' AND `mempool_type` = '".$type."'";
mysql_query($query);
if($debug) { print $query . "\n"; }
}