/[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.36 by martinp, Fri Nov 29 23:23:31 2002 UTC revision 1.37 by hauk, Sat Nov 30 00:35:05 2002 UTC
# Line 694  static void do_process(HttpRequest req, Line 694  static void do_process(HttpRequest req,
694        case RESOURCE_ID_MEM_PERCENT:        case RESOURCE_ID_MEM_PERCENT:
695                    
696          out_print(res,"<tr><td> Max. memory usage</a></td>"          out_print(res,"<tr><td> Max. memory usage</a></td>"
697                    "<td>If %s %.1f%% for %d/%d cycle(s) then %s</td></tr>",                    "<td>If %s %.1f%% for %d cycle(s) then %s</td></tr>",
698                    operatornames[q->operator],                    operatornames[q->operator],
699                    q->limit/10.0, q->cycle, q->max_cycle,                    q->limit/10.0, q->max_cycle,
700                    actionnames[q->action]);                    actionnames[q->action]);
701          break;          break;
702                    
703        case RESOURCE_ID_MEM_KBYTE:        case RESOURCE_ID_MEM_KBYTE:
704                
705          out_print(res,"<tr><td>Max. memory amount</a></td>"          out_print(res,"<tr><td>Max. memory amount</a></td>"
706                    "<td>If %s %ld for %d/%d cycle(s) then %s</td></tr>",                    "<td>If %s %ld for %d cycle(s) then %s</td></tr>",
707                    operatornames[q->operator],                    operatornames[q->operator],
708                    q->limit, q->cycle, q->max_cycle,                    q->limit, q->max_cycle,
709                    actionnames[q->action]);                    actionnames[q->action]);
710          break;          break;
711                    
712        case RESOURCE_ID_LOAD1:        case RESOURCE_ID_LOAD1:
713                
714          out_print(res,"<tr><td>Load average (1min)</a></td>"          out_print(res,"<tr><td>Load average (1min)</a></td>"
715                    "<td>If %s %.1f for %d/%d cycle(s) then %s</td></tr>",                    "<td>If %s %.1f for %d cycle(s) then %s</td></tr>",
716                    operatornames[q->operator],                    operatornames[q->operator],
717                    q->limit/10.0, q->cycle, q->max_cycle,                    q->limit/10.0, q->max_cycle,
718                    actionnames[q->action]);                    actionnames[q->action]);
719          break;          break;
720                    
721        case RESOURCE_ID_LOAD5:        case RESOURCE_ID_LOAD5:
722                
723          out_print(res,"<tr><td>Load average (5min)</a></td>"          out_print(res,"<tr><td>Load average (5min)</a></td>"
724                    "<td>If %s %.1f for %d/%d cycle(s) then %s</td></tr>",                    "<td>If %s %.1f for %d cycle(s) then %s</td></tr>",
725                    operatornames[q->operator],                    operatornames[q->operator],
726                    q->limit/10.0, q->cycle, q->max_cycle,                    q->limit/10.0, q->max_cycle,
727                    actionnames[q->action]);                    actionnames[q->action]);
728          break;          break;
729                    
730        case RESOURCE_ID_LOAD15:        case RESOURCE_ID_LOAD15:
731          out_print(res,"<tr><td>Load average (15min)</a></td>"          out_print(res,"<tr><td>Load average (15min)</a></td>"
732                    "<td>If %s %.1f for %d/%d cycle(s) then %s</td></tr>",                    "<td>If %s %.1f for %d cycle(s) then %s</td></tr>",
733                    operatornames[q->operator],                    operatornames[q->operator],
734                    q->limit/10.0, q->cycle, q->max_cycle,                    q->limit/10.0, q->max_cycle,
735                    actionnames[q->action]);                    actionnames[q->action]);
736          break;          break;
737                    

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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