/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

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

revision 1.143 by hauk, Sun Jan 9 01:40:29 2005 UTC revision 1.144 by martinp, Sun Jan 9 19:24:37 2005 UTC
# Line 858  void Util_printService(Service_T s) { Line 858  void Util_printService(Service_T s) {
858      case RESOURCE_ID_CHILDREN:      case RESOURCE_ID_CHILDREN:
859    
860        printf(" %-20s = If %s %ld for %d cycle(s) then %s "        printf(" %-20s = If %s %ld for %d cycle(s) then %s "
861          "else if recovered then %s",          "else if recovered then %s\n",
862          "Children", operatornames[q->operator], q->limit, q->max_cycle,          "Children", operatornames[q->operator], q->limit, q->max_cycle,
863          actionnames[a->failed->id], actionnames[a->passed->id]);          actionnames[a->failed->id], actionnames[a->passed->id]);
864        break;        break;
# Line 866  void Util_printService(Service_T s) { Line 866  void Util_printService(Service_T s) {
866      case RESOURCE_ID_TOTAL_MEM_KBYTE:      case RESOURCE_ID_TOTAL_MEM_KBYTE:
867    
868        printf(" %-20s = If %s %ld for %d cycle(s) then %s "        printf(" %-20s = If %s %ld for %d cycle(s) then %s "
869          "else if recovered then %s",          "else if recovered then %s\n",
870          "Memory amount limit (incl. children)",          "Memory amount limit (incl. children)",
871          operatornames[q->operator], q->limit, q->max_cycle,          operatornames[q->operator], q->limit, q->max_cycle,
872          actionnames[a->failed->id], actionnames[a->passed->id]);          actionnames[a->failed->id], actionnames[a->passed->id]);
# Line 875  void Util_printService(Service_T s) { Line 875  void Util_printService(Service_T s) {
875      case RESOURCE_ID_TOTAL_MEM_PERCENT:      case RESOURCE_ID_TOTAL_MEM_PERCENT:
876    
877        printf(" %-20s = If %s %.1f%% for %d cycle(s) then %s "        printf(" %-20s = If %s %.1f%% for %d cycle(s) then %s "
878          "else if recovered then %s",          "else if recovered then %s\n",
879          "Memory usage limit (incl. children)",          "Memory usage limit (incl. children)",
880          operatornames[q->operator], q->limit/10.0, q->max_cycle,          operatornames[q->operator], q->limit/10.0, q->max_cycle,
881          actionnames[a->failed->id], actionnames[a->passed->id]);          actionnames[a->failed->id], actionnames[a->passed->id]);

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144

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