Tidy top 10 displays

This commit is contained in:
Paul Gear
2013-11-26 15:32:53 +10:00
parent 8d63a2d368
commit ab23cbe144
4 changed files with 35 additions and 25 deletions
+4 -4
View File
@@ -31,10 +31,10 @@ $query = "
echo("<strong>Top $top devices (last $minutes minutes)</strong>\n");
echo("<table class='simple'>\n");
foreach (dbFetchRows($query) as $result) {
echo("<tr>".
"<td>".generate_device_link($result, shorthost($result['hostname']))."</td>".
"<td>".generate_device_link($result,
generate_minigraph_image($result, $config['time']['day'], $config['time']['now'], "device_bits", "no", 150, 21, '&'), array(), 0, 0, 0)."</td>".
echo("<tr class=top10>".
"<td class=top10>".generate_device_link($result, shorthost($result['hostname']))."</td>".
"<td class=top10>".generate_device_link($result,
generate_minigraph_image($result, $config['time']['day'], $config['time']['now'], "device_bits", "no", 150, 21, '&', "top10"), array(), 0, 0, 0)."</td>".
"</tr>\n");
}
echo("</table>\n");