Remove all unneeded if($debug)-statements and replace them with d_echo

This commit is contained in:
Mark Schouten
2015-08-21 16:10:00 +02:00
parent e0edeab13f
commit 55a2e0423d
24 changed files with 47 additions and 142 deletions
+1 -3
View File
@@ -19,9 +19,7 @@ foreach (dbFetchRows('SELECT * FROM storage WHERE device_id = ?', array($device[
// FIXME Generic poller goes here if we ever have a discovery module which uses it.
}
if ($debug) {
print_r($storage);
}
d_echo($storage);
if ($storage['size']) {
$percent = round(($storage['used'] / $storage['size'] * 100));