git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
94ac751
Branches
Tags
master
keks-overlay.git
app-admin
monit
files
monit-5.1.1-fix-newlines.diff
test-patch für linebreaks in monit
Hanno Böck
commited
94ac751
at 2010-06-28 14:39:18
monit-5.1.1-fix-newlines.diff
Blame
History
Raw
--- monit-5.1.1/validate.c 2010-02-23 11:32:40.000000000 +0100 +++ monit-5.1.1-1/validate.c 2010-06-28 12:38:30.000000000 +0200 @@ -766,7 +766,7 @@ snprintf(report, STRLEN, "loadavg(1min) of %.1f matches resource limit " "[loadavg(1min)%s%.1f]", systeminfo.loadavg[0], operatorshortnames[r->operator], r->limit/10.0); okay = FALSE; } else - snprintf(report, STRLEN, "'%s' loadavg(1min) check succeeded [current loadavg(1min)=%.1f]\n", s->name, systeminfo.loadavg[0]); + snprintf(report, STRLEN, "'%s' loadavg(1min) check succeeded [current loadavg(1min)=%.1f]", s->name, systeminfo.loadavg[0]); break; case RESOURCE_ID_LOAD5: @@ -774,7 +774,7 @@ snprintf(report, STRLEN, "loadavg(5min) of %.1f matches resource limit " "[loadavg(5min)%s%.1f]", systeminfo.loadavg[1], operatorshortnames[r->operator], r->limit/10.0); okay = FALSE; } else - snprintf(report, STRLEN, "'%s' loadavg(5min) check succeeded [current loadavg(5min)=%.1f]\n", s->name, systeminfo.loadavg[1]); + snprintf(report, STRLEN, "'%s' loadavg(5min) check succeeded [current loadavg(5min)=%.1f]", s->name, systeminfo.loadavg[1]); break; case RESOURCE_ID_LOAD15: @@ -782,7 +782,7 @@ snprintf(report, STRLEN, "loadavg(15min) of %.1f matches resource limit " "[loadavg(15min)%s%.1f]", systeminfo.loadavg[2], operatorshortnames[r->operator], r->limit/10.0); okay = FALSE; } else - snprintf(report, STRLEN, "'%s' loadavg(15min) check succeeded [current loadavg(15min)=%.1f]\n", s->name, systeminfo.loadavg[2]); + snprintf(report, STRLEN, "'%s' loadavg(15min) check succeeded [current loadavg(15min)=%.1f]", s->name, systeminfo.loadavg[2]); break; case RESOURCE_ID_CHILDREN: @@ -790,7 +790,7 @@ snprintf(report, STRLEN, "children of %i matches resource limit [children%s%ld]", s->inf->children, operatorshortnames[r->operator], r->limit); okay = FALSE; } else - snprintf(report, STRLEN, "'%s' children check succeeded [current children=%i]\n", s->name, s->inf->children); + snprintf(report, STRLEN, "'%s' children check succeeded [current children=%i]", s->name, s->inf->children); break; case RESOURCE_ID_TOTAL_MEM_KBYTE: @@ -798,7 +798,7 @@ snprintf(report, STRLEN, "total mem amount of %ldkB matches resource limit" " [total mem amount%s%ldkB]", s->inf->total_mem_kbyte, operatorshortnames[r->operator], r->limit); okay = FALSE; } else - snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%ldkB]\n", s->name, s->inf->total_mem_kbyte); + snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%ldkB]", s->name, s->inf->total_mem_kbyte); break; case RESOURCE_ID_TOTAL_MEM_PERCENT: @@ -806,7 +806,7 @@ snprintf(report, STRLEN, "total mem amount of %.1f%% matches resource limit" " [total mem amount%s%.1f%%]", (float)s->inf->total_mem_percent/10.0, operatorshortnames[r->operator], (float)r->limit/10.0); okay = FALSE; } else - snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%.1f%%]\n", s->name, s->inf->total_mem_percent/10.0); + snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%.1f%%]", s->name, s->inf->total_mem_percent/10.0); break; default: