/[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.51 by martinp, Mon Feb 10 19:39:55 2003 UTC revision 1.52 by martinp, Tue Feb 11 13:55:01 2003 UTC
# Line 645  static void do_process(HttpRequest req, Line 645  static void do_process(HttpRequest req,
645             "<tr><td>Monitoring mode</a></td><td>%s</td></tr>",             "<tr><td>Monitoring mode</a></td><td>%s</td></tr>",
646             modenames[p->mode]);             modenames[p->mode]);
647    out_print(res,    out_print(res,
648               "<tr><td>Monitoring status</a></td><td>%s</td></tr>",
649               statusnames[p->do_validate]);
650      out_print(res,
651      "<tr><td>Start program</a></td><td>%s</td></tr>",      "<tr><td>Start program</a></td><td>%s</td></tr>",
652              p->start?p->start->arg[0]:"(not defined)");              p->start?p->start->arg[0]:"(not defined)");
653    out_print(res,    out_print(res,
# Line 873  static void print_status(Process_T p, Ht Line 876  static void print_status(Process_T p, Ht
876      if( Run.httpdssl ) {      if( Run.httpdssl ) {
877    
878        printf_ssl_socket(res->ssl,        printf_ssl_socket(res->ssl,
879                          "Process '%s' is running with pid [%d] \n\tUptime: %s "          "Process '%s' is running with pid [%d]\n\tUptime: %s "
880                          "CPU: %.1f%% Memory: %.1f%% [%ldkB]\n",          "CPU: %.1f%% Memory: %.1f%% [%ldkB]\n\tMonitoring status: %s\n",
881                          p->name, (int)pid, uptime,          p->name, (int)pid, uptime, pi->cpu_percent/10.0,
882                          pi->cpu_percent/10.0,          pi->mem_percent/10.0,pi->mem_kbyte, statusnames[p->do_validate]);
                         pi->mem_percent/10.0,pi->mem_kbyte);  
883                
884      } else {      } else {
885    
886        fprintf(out,        fprintf(out,
887                "Process '%s' is running with pid [%d] \n\tUptime: %s "          "Process '%s' is running with pid [%d]\n\tUptime: %s "
888                "CPU: %.1f%% Memory: %.1f%% [%ldkB]\n",          "CPU: %.1f%% Memory: %.1f%% [%ldkB]\n\tMonitoring status: %s\n",
889                p->name, (int)pid, uptime,          p->name, (int)pid, uptime, pi->cpu_percent/10.0,
890                pi->cpu_percent/10.0,          pi->mem_percent/10.0,pi->mem_kbyte, statusnames[p->do_validate]);
               pi->mem_percent/10.0,pi->mem_kbyte);  
891    
892      }          }    
893    

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

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