Changeset

542:32d9fd110cb1

mod_server_status: corrected error.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 10 Jan 2012 19:46:54 +0000
parents 541:947103177844
children 543:d8614cfe8fc9
files mod_server_status/mod_server_status.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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