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.15 2010/03/29 12:06:12 jonasw Exp $ +  * $Id: debug_summary.pike,v 1.16 2011/12/27 17:30:52 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\n", "Logical server directory:", roxenloader.server_dir); +  res+=sprintf(" %-30s %s\n", "Physical 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