From f820b8313eb697cc96ffd4f258d1dcc82ab4f56e Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 24 Aug 2009 23:46:22 -0500 Subject: Should be starting with the least available and getting more so, instead of the other way around. --- src/status-service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/status-service.c') diff --git a/src/status-service.c b/src/status-service.c index 5a60fa6..14d8a34 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -75,12 +75,12 @@ static StatusProviderStatus global_status = STATUS_PROVIDER_STATUS_OFFLINE; static void status_update (void) { StatusProviderStatus oldglobal = global_status; - global_status = STATUS_PROVIDER_STATUS_ONLINE; + global_status = STATUS_PROVIDER_STATUS_OFFLINE; int i; for (i = 0; i < STATUS_PROVIDER_CNT; i++) { StatusProviderStatus localstatus = status_provider_get_status(status_providers[i]); - if (localstatus > global_status) { + if (localstatus < global_status) { global_status = localstatus; } } -- cgit v1.2.3