# HG changeset patch # User Marco Cirillo # Date 1326224814 0 # Node ID 32d9fd110cb1fa0e0a1063ea8316a59da7384436 # Parent 947103177844df95de877d023d0c81c07bfe1b30 mod_server_status: corrected error. diff -r 947103177844 -r 32d9fd110cb1 mod_server_status/mod_server_status.lua --- a/mod_server_status/mod_server_status.lua Tue Jan 10 19:36:28 2012 +0000 +++ b/mod_server_status/mod_server_status.lua Tue Jan 10 19:46:54 2012 +0000 @@ -99,9 +99,9 @@ for _,n in ipairs(show_hosts) do result.hosts[n] = hosts[name] and "online" or "offline" end end if show_comps then - result.comps = {} - for _,n in ipairs(show_hosts) do - result.comps[n] = hosts[name].modules.component and hosts[name].modules.component.connected and "online" or + result.components = {} + for _,n in ipairs(show_comps) do + result.components[n] = hosts[name].modules.component and hosts[name].modules.component.connected and "online" or hosts[name] and hosts[name].modules.component == nil and "online" or "offline" end end