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

version» Context lines:

Roxen.git/server/config_interface/boxes/server_status.pike:11:   LocaleString box_doc = _(368,"Various global server statistics");      string add_row( string item, string value ) {    return "<tr><td>" + item + ":</td><td>" + value + "</td></tr>";   }      string parse( RequestID id )   {    int dt = (time() - roxen->start_time+1);    string contents = ""; +  contents += add_row( _(0, "Server time"), +  Roxen.strftime( "%Y-%m-%d %H:%M:%S", time()) );    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 ));       mapping(string:int) ru;    if(!catch(ru = System.getrusage())) {    int tmp;    if (ru->utime)    tmp = ru->utime / (time() - roxen->start_time + 1);