comparison mod_munin/mod_munin.lua @ 1898:d85ddd3e588a

mod_munin: Fix syntax error
author Kim Alvefur <zash@zash.se>
date Wed, 07 Oct 2015 20:42:09 +0200
parents effd909d05b0
children 2ffc268ba2fa
comparison
equal deleted inserted replaced
1897:effd909d05b0 1898:d85ddd3e588a
91 if host == nil then 91 if host == nil then
92 sect, name, typ, host = stat:match("^([^.]+)%.([^:]+):(%a+)$"); 92 sect, name, typ, host = stat:match("^([^.]+)%.([^:]+):(%a+)$");
93 elseif host == "*" then 93 elseif host == "*" then
94 host = nil; 94 host = nil;
95 end 95 end
96 if sect:find"^mod_measure_.") then 96 if sect:find("^mod_measure_.") then
97 sect = sect:sub(13); 97 sect = sect:sub(13);
98 elseif sect:find"^mod_statistics_.") then 98 elseif sect:find("^mod_statistics_.") then
99 sect = sect:sub(16); 99 sect = sect:sub(16);
100 end 100 end
101 key = clean_fieldname(s_format("%s_%s_%s", host or "global", sect, typ)); 101 key = clean_fieldname(s_format("%s_%s_%s", host or "global", sect, typ));
102 102
103 if not meta:get(key) then 103 if not meta:get(key) then