Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
if (true) {
sort($not_responding);
print('<div class="left"><h3>Unavailable machines</h3><ul>');
print('<li><i>pinac01-10</i>, reinstalled as desktop machines</li>');
foreach($not_responding as $key) {
printf('<li><a href="#%s">%s</a>, no data received since %s</li>',
$key, $key, date('l jS \of F, G:i:s', round(@$time[$key])));
Expand Down
2 changes: 1 addition & 1 deletion stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
p = Popen("hostname", shell=True, stdout=PIPE, close_fds=True)
hostname = p.stdout.readline().strip()
#hostname = commands.getoutput("hostname")
output = "<tr><td colspan=\"6\"><b>%s</b> (CPU:%s%% - MEM:%s%%)</td></tr>"%(hostname, totcpu,totmem)+output
output = "<tr><td colspan=\"6\"><b>%s</b> (CPU:%s%% - MEM:%s%%)</td></tr>"%(hostname, round(totcpu,1),totmem)+output

f = open("%s/%s.%s"%(DIR,hostname,EXT), "w")
f.write("<?php\n")
Expand Down