put all the stats into the optionbar (#11501)

* put all the stats into the optionbar

* display output in 1 line
This commit is contained in:
Arjit Chaudhary
2020-05-01 05:00:33 +05:30
committed by GitHub
parent 85edd3a04a
commit 5eef90b9ad

View File

@@ -342,12 +342,9 @@ If `devices.ignore = 0` or `macros.device = 1` condition is is set and ignore al
print_optionbar_start();
list($sizeondisk, $numrrds) = foldersize(get_rrd_dir($device['hostname']));
echo("Size on Disk: <b>" . formatStorage($sizeondisk) . "</b> in <b>" . $numrrds . " RRD files</b>.");
print_optionbar_end();
echo("<small>");
echo("Last polled: <b>" . $device['last_polled'] . "</b>");
echo(" | Last polled: <b>" . $device['last_polled'] . "</b>");
if ($device['last_discovered']) {
echo("<br>Last discovered: <b>" . $device['last_discovered'] . "</b>");
echo(" | Last discovered: <b>" . $device['last_discovered'] . "</b>");
}
echo("</small>");
print_optionbar_end();
?>