monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] [monit] r234 committed - added statusmodified


From: monit
Subject: [monit-dev] [monit] r234 committed - added statusmodified
Date: Sat, 04 Sep 2010 19:04:08 +0000

Revision: 234
Author: martin2812
Date: Sat Sep  4 12:03:10 2010
Log: added statusmodified
http://code.google.com/p/monit/source/detail?r=234

Modified:
 /trunk/xml.c

=======================================
--- /trunk/xml.c        Sat Aug 28 08:45:19 2010
+++ /trunk/xml.c        Sat Sep  4 12:03:10 2010
@@ -95,21 +95,19 @@

   document_head(&B, V);

-  if (E) {
-    status_event(E, &B);
-  } else {
-    if (V == 2)
-            Util_stringbuffer(&B, "<services>");
-    for (S = servicelist_conf; S; S = S->next_conf)
-      status_service(S, &B, L, V);
-    if (V == 2) {
-            Util_stringbuffer(&B, "</services>"
-                                  "<servicegroups>");
-            for (SG = servicegrouplist; SG; SG = SG->next)
-              status_servicegroup(SG, &B, L);
-            Util_stringbuffer(&B, "</servicegroups>");
-    }
-  }
+  if (V == 2)
+    Util_stringbuffer(&B, "<services>");
+  for (S = servicelist_conf; S; S = S->next_conf)
+    status_service(S, &B, L, V);
+  if (V == 2) {
+    Util_stringbuffer(&B, "</services>"
+                          "<servicegroups>");
+    for (SG = servicegrouplist; SG; SG = SG->next)
+      status_servicegroup(SG, &B, L);
+    Util_stringbuffer(&B, "</servicegroups>");
+  }
+  if (E)
+    status_event(E, &B);

   document_foot(&B);

@@ -207,9 +205,7 @@
  * @param B Buffer object
  */
 static void document_foot(Buffer_T *B) {
-
   Util_stringbuffer(B, "</monit>");
-
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]