Branch: Tag:

2010-11-18

2010-11-18 19:48:29 by Martin Jonsson <marty@roxen.com>

Display system load average where available.

Rev: server/config_interface/boxes/server_status.pike:1.7

54:    _(6,"min")) );    contents += add_row( _(7,"Received data"), Roxen.sizetostring(total->received));    + #if constant(System.getloadavg) +  contents += add_row( _(0, "System load"), +  sprintf ("%{%.2f %}", System.getloadavg())); + #endif +     return ("<box type='"+box+"' title='"+box_name+"'><table cellpadding='0'>"+    contents+"</table></box>");   }