[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit-dev] [monit] r228 committed - [No log message]
From: |
monit |
Subject: |
[monit-dev] [monit] r228 committed - [No log message] |
Date: |
Sat, 28 Aug 2010 15:46:18 +0000 |
Revision: 228
Author: martin2812
Date: Sat Aug 28 08:45:19 2010
Log: [No log message]
http://code.google.com/p/monit/source/detail?r=228
Modified:
/trunk/xml.c
=======================================
--- /trunk/xml.c Thu Aug 26 12:31:40 2010
+++ /trunk/xml.c Sat Aug 28 08:45:19 2010
@@ -98,14 +98,17 @@
if (E) {
status_event(E, &B);
} else {
- Util_stringbuffer(&B, "<services>");
+ if (V == 2)
+ Util_stringbuffer(&B, "<services>");
for (S = servicelist_conf; S; S = S->next_conf)
status_service(S, &B, L, V);
- Util_stringbuffer(&B, "</services>");
- Util_stringbuffer(&B, "<servicegroups>");
- for (SG = servicegrouplist; SG; SG = SG->next)
- status_servicegroup(SG, &B, L);
- Util_stringbuffer(&B, "</servicegroups>");
+ if (V == 2) {
+ Util_stringbuffer(&B, "</services>"
+ "<servicegroups>");
+ for (SG = servicegrouplist; SG; SG = SG->next)
+ status_servicegroup(SG, &B, L);
+ Util_stringbuffer(&B, "</servicegroups>");
+ }
}
document_foot(&B);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit-dev] [monit] r228 committed - [No log message],
monit <=