Roxen.git / server / config_interface / actions / debug_summary.pike

version» Context lines:

Roxen.git/server/config_interface/actions/debug_summary.pike:1:   /* -  * $Id: debug_summary.pike,v 1.11 2004/05/25 16:33:12 anders Exp $ +  * $Id: debug_summary.pike,v 1.12 2006/05/11 13:30:40 mast Exp $    */   #include <stat.h>   #include <roxen.h>   //<locale-token project="admin_tasks">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("admin_tasks",X,Y)      constant action = "debug_info";      LocaleString name= LOCALE(163,"Debug summary");   LocaleString doc = LOCALE(164,
Roxen.git/server/config_interface/actions/debug_summary.pike:63:   string make_headline(string title)   {    return sprintf("%s:\n%s\n", title, "-"*(sizeof(title)+1));   }      string make_environment_summary()   {    string res = make_headline("Environment");    res+=sprintf(" %-30s %s\n", "Roxen version:", roxen_version());    res+=sprintf(" %-30s %s\n", "Pike version:", version()); +  res+=sprintf(" %-30s %s\n", "Working directory:", getcwd());    res+=sprintf(" %-30s %s", "Time:", ctime(time()));    res+=sprintf(" %-30s %s\n", "Host:", gethostname());   #ifdef __NT__    res+=sprintf(" %-30s %s\n", "Platform:", "NT");   #else    res+=sprintf(" %-30s %s %s %s\n", "Platform:",    uname()->sysname||"",    uname()->release||"",    uname()->machine);   #endif