From c80f9adacb9f9fdae8a2dbc40c81c7f5d04dcf7b Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Tue, 8 Sep 2015 14:29:35 +0200 Subject: [PATCH] Refactor. - move autoconf block lower down. - will be taken advantage of in a newer commit. --- ykval-munin-queuelength.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ykval-munin-queuelength.php b/ykval-munin-queuelength.php index 91032d8..abda118 100755 --- a/ykval-munin-queuelength.php +++ b/ykval-munin-queuelength.php @@ -48,15 +48,15 @@ function url2shortname ($url) return $name[1]; } +$urls = $baseParams['__YKVAL_SYNC_POOL__']; +$shortnames = array_map("url2shortname", $urls); + if ($argc == 2 && strcmp($argv[1], "autoconf") == 0) { print "yes\n"; exit(0); } -$urls = $baseParams['__YKVAL_SYNC_POOL__']; -$shortnames = array_map("url2shortname", $urls); - if ($argc==2 && strcmp($argv[1], "config") == 0) { echo "graph_title YK-VAL queue size\n";