/[monit]/monit/http/cervlet.c
ViewVC logotype

Diff of /monit/http/cervlet.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.94 by chopp, Sun Sep 14 00:03:54 2003 UTC revision 1.95 by chopp, Mon Sep 15 13:02:03 2003 UTC
# Line 203  static void is_monit_running(HttpRequest Line 203  static void is_monit_running(HttpRequest
203    
204  static void do_home(HttpRequest req, HttpResponse res) {  static void do_home(HttpRequest req, HttpResponse res) {
205    
206    char *uptime= get_process_uptime(Run.pidfile);    char *uptime= get_process_uptime(Run.pidfile, " ");
207    
208    HEAD("", Run.polltime)    HEAD("", Run.polltime)
209    out_print(res,    out_print(res,
# Line 587  static void print_status(Service_T s, Ht Line 587  static void print_status(Service_T s, Ht
587                
588        if((pid= is_process_running(s))) {        if((pid= is_process_running(s))) {
589                    
590          char *uptime= get_process_uptime(s->path);          char *uptime= get_process_uptime(s->path, " ");
591          char buf[STRLEN];          char buf[STRLEN];
592          ProcInfo_T pi= s->procinfo;          ProcInfo_T pi= s->procinfo;
593                    
# Line 1001  static void do_home_process(HttpRequest Line 1001  static void do_home_process(HttpRequest
1001      }      }
1002    
1003      isrunning= is_process_running(s);      isrunning= is_process_running(s);
1004      uptime= get_process_uptime(s->path);      uptime= get_process_uptime(s->path, " ");
1005            
1006      if(Run.doprocess) {      if(Run.doprocess) {
1007        ProcInfo_T pi= s->procinfo;        ProcInfo_T pi= s->procinfo;
# Line 1011  static void do_home_process(HttpRequest Line 1011  static void do_home_process(HttpRequest
1011                    "<td width=\"20%\"><a href='/%s'>%s</a></td>"                    "<td width=\"20%\"><a href='/%s'>%s</a></td>"
1012                    "<td align=\"left\">%s</td><td align=\"right\">%s</td>"                    "<td align=\"left\">%s</td><td align=\"right\">%s</td>"
1013                    "<td align=\"right\">%.1f%%</td>"                    "<td align=\"right\">%.1f%%</td>"
1014                    "<td align=\"right\">%.1f%% [%ldkB]</td></tr>",                    "<td align=\"right\">%.1f%% [%ld&nbsp;kB]</td></tr>",
1015                    on?"bgcolor=\"#EFEFEF\"":"",                    on?"bgcolor=\"#EFEFEF\"":"",
1016                    s->name, s->name,                    s->name, s->name,
1017                    isrunning?                    isrunning?
# Line 1103  static void do_home_device(HttpRequest r Line 1103  static void do_home_device(HttpRequest r
1103                    "<tr %s>"                    "<tr %s>"
1104                    "<td width=\"20%\"><a href='/%s'>%s</a></td>"                    "<td width=\"20%\"><a href='/%s'>%s</a></td>"
1105                    "<td align=\"left\">%s</td>"                    "<td align=\"left\">%s</td>"
1106                    "<td align=\"right\">%.1f%% [%.1f MB]</td>"                    "<td align=\"right\">%.1f%% [%.1f&nbsp;MB]</td>"
1107                    "<td align=\"right\">%.1f%% [%ld objects]</td>"                    "<td align=\"right\">%.1f%% [%ld&nbsp;objects]</td>"
1108                    "</tr>",                    "</tr>",
1109                    on?"bgcolor=\"#EFEFEF\"":"",                    on?"bgcolor=\"#EFEFEF\"":"",
1110                    s->name, s->name,                    s->name, s->name,
# Line 1129  static void do_home_device(HttpRequest r Line 1129  static void do_home_device(HttpRequest r
1129                    "<tr %s>"                    "<tr %s>"
1130                    "<td width=\"20%\"><a href='/%s'>%s</a></td>"                    "<td width=\"20%\"><a href='/%s'>%s</a></td>"
1131                    "<td align=\"left\">%s</td>"                    "<td align=\"left\">%s</td>"
1132                    "<td align=\"right\">%.1f%% [%.1f MB]</td>"                    "<td align=\"right\">%.1f%% [%.1f&nbsp;MB]</td>"
1133                    "<td align=\"right\"><font color=red>not supported by "                    "<td align=\"right\"><font color=red>not supported by "
1134                    "filesystem</font></td></tr>",                    "filesystem</font></td></tr>",
1135                    on?"bgcolor=\"#EFEFEF\"":"",                    on?"bgcolor=\"#EFEFEF\"":"",
# Line 1210  static void do_home_file(HttpRequest req Line 1210  static void do_home_file(HttpRequest req
1210                  "<tr %s>"                  "<tr %s>"
1211                  "<td width=\"20%\"><a href='/%s'>%s</a></td>"                  "<td width=\"20%\"><a href='/%s'>%s</a></td>"
1212                  "<td align=\"left\">%s</td>"                  "<td align=\"left\">%s</td>"
1213                  "<td align=\"right\">%lu B</td>"                  "<td align=\"right\">%lu&nbsp;B</td>"
1214                  "<td align=\"right\">%o</td>"                  "<td align=\"right\">%o</td>"
1215                  "<td align=\"right\">%d</td>"                  "<td align=\"right\">%d</td>"
1216                  "<td align=\"right\">%d</td>"                  "<td align=\"right\">%d</td>"

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26