|
@@ -1,11 +1,11 @@
---- check_varnish.c.orig 2010-05-05 22:36:51.015990238 +0200
-+++ check_varnish.c 2010-05-05 22:47:22.723437949 +0200
-@@ -180,7 +180,7 @@
- value = total ? (100 * VSL_stats->sm_balloc / total) : 0;
- info = "Cache file usage";
+--- check_varnish.c.orig 2010-06-03 00:33:53.735750809 +0200
++++ check_varnish.c 2010-06-03 00:34:13.330882681 +0200
+@@ -101,7 +101,7 @@
+ level = check_treshold(ratio, w, c, less);
+ message_and_exit(level, ratio, "Cache hit ratio");
}
-#define MAC_STAT(n, t, f, d) \
-+#define MAC_STAT(n, t, l, f, e) \
- else if (strcmp(param, #n) == 0) { \
- value = VSL_stats->n; \
- info = d; \
++#define MAC_STAT(n, t, l, f, d) \
+ do { \
+ intmax_t ju = VSL_stats->n; \
+ if (!strcmp(param, #n)) { \
|