From b0a1609e37045fe9251d4afaedde35a1ca65ca2a Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 27 Jan 2009 09:18:48 +0000 Subject: fixing path extraction --- files/munin/lighttpd_ | 4 ++-- 1 file 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 # 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" -- cgit v1.2.3