summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/munin/lighttpd_4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/munin/lighttpd_ b/files/munin/lighttpd_
index 5862ee9..65d51d2 100644
--- a/files/munin/lighttpd_
+++ b/files/munin/lighttpd_
@@ -5,8 +5,8 @@
# immerda project group <admin+munin(at)immerda.ch>
# GPLv3
-import sys
-kind = sys.argv[0].replace('lighttpd_', '')
+import sys, os
+kind = os.path.split(sys.argv[0])[1].replace('lighttpd_', '')
if kind == "total_accesses":
graph_title = "Total Accesses"
graph_type = "DERIVE"