mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
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:
@@ -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"; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user