diff --git a/includes/polling/storage.inc.php b/includes/polling/storage.inc.php index 3ced14ac27..82ba79abd9 100644 --- a/includes/polling/storage.inc.php +++ b/includes/polling/storage.inc.php @@ -40,16 +40,7 @@ foreach (dbFetchRows('SELECT * FROM storage WHERE device_id = ?', array($device[ $tags = array('mib' => $storage['storage_mib'], 'descr' => $storage['storage_descr']); influx_update($device,'storage',$tags,$fields); - if ($config['memcached']['enable'] === true) { - $memcache->set('storage-'.$storage['storage_id'].'-used', $storage['used']); - $memcache->set('storage-'.$storage['storage_id'].'-free', $storage['free']); - $memcache->set('storage-'.$storage['storage_id'].'-size', $storage['size']); - $memcache->set('storage-'.$storage['storage_id'].'-units', $storage['units']); - $memcache->set('storage-'.$storage['storage_id'].'-perc', $percent); - } - else { - $update = dbUpdate(array('storage_used' => $storage['used'], 'storage_free' => $storage['free'], 'storage_size' => $storage['size'], 'storage_units' => $storage['units'], 'storage_perc' => $percent), 'storage', '`storage_id` = ?', array($storage['storage_id'])); - } + $update = dbUpdate(array('storage_used' => $storage['used'], 'storage_free' => $storage['free'], 'storage_size' => $storage['size'], 'storage_units' => $storage['units'], 'storage_perc' => $percent), 'storage', '`storage_id` = ?', array($storage['storage_id'])); echo "\n"; }//end foreach