Roxen.git / server / config_interface / boxes / server_status.pike

version» Context lines:

Roxen.git/server/config_interface/boxes/server_status.pike:4:   #include <roxen.h>   #define _(X,Y) _DEF_LOCALE("roxen_config",X,Y)      constant box = "large";   constant box_initial = 1;      LocaleString box_name = _(367,"Server status");   LocaleString box_doc = _(368,"Various global server statistics");      string add_row( string item, string value ) { -  return "<dl><dt>" + item + ":</dt><dd>" + value + "</dd></dl>"; +  return +  "<tr>" +  "<th style='width:25%'>" + item + "</th>" +  "<td>" + value + "</td>" +  "</tr>";   }      string parse( RequestID id )   {    int dt = (time() - roxen->start_time+1);    string contents = "";    contents += add_row( _(369, "Server started"),    Roxen.strftime( "%Y-%m-%d %H:%M:%S", roxen->start_time) );    contents += add_row( _(370, "Server uptime"),    Roxen.msectos( dt*1000 ));
Roxen.git/server/config_interface/boxes/server_status.pike:51:    sprintf(" (%.2f/%s)",    (((float)total->requests*60.0)/dt),    _(6,"min")) );    contents += add_row( _(7,"Received data"), Roxen.sizetostring(total->received));      #if constant(System.getloadavg)    contents += add_row( _(1060, "System load"),    sprintf ("%{%.2f %}", System.getloadavg()));   #endif    -  return ("<cbox type='"+box+"' title='"+box_name+"'>"+ -  contents+"</cbox>"); +  return +  "<cbox type='"+box+"' title='"+box_name+"'>" +  "<div class='negative-wrapper'>" +  "<table class='nice'>" + contents+"</table>" +  "</div></cbox>";   }