mod_munin: Don’t use host when it is nil.
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 21 Jun 2018 22:38:56 +0200
changeset 3133 2ffc268ba2fa
parent 3132 a34e7bd87b39
child 3134 c47cd8dbd310
mod_munin: Don’t use host when it is nil.
mod_munin/mod_munin.lua
--- a/mod_munin/mod_munin.lua	Thu Jun 21 22:15:15 2018 +0200
+++ b/mod_munin/mod_munin.lua	Thu Jun 21 22:38:56 2018 +0200
@@ -104,7 +104,7 @@
 				if host then
 					meta:set(key, "", "graph_title", s_format("%s %s on %s", sect, typ, host));
 				else
-					meta:set(key, "", "graph_title", s_format("Global %s %s", sect, typ, host));
+					meta:set(key, "", "graph_title", s_format("Global %s %s", sect, typ));
 				end
 				meta:set(key, "", "graph_vlabel", this and this.units or typ);
 				meta:set(key, "", "graph_category", sect);