aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-24 23:46:22 -0500
committerTed Gould <ted@canonical.com>2009-08-24 23:46:22 -0500
commitf820b8313eb697cc96ffd4f258d1dcc82ab4f56e (patch)
tree91c4a594d4808d5a1a403f0cde95c82d3ef0050a
parent1246414b8b64eed892222e3b0b2e27cb77e40ddf (diff)
downloadayatana-indicator-session-f820b8313eb697cc96ffd4f258d1dcc82ab4f56e.tar.gz
ayatana-indicator-session-f820b8313eb697cc96ffd4f258d1dcc82ab4f56e.tar.bz2
ayatana-indicator-session-f820b8313eb697cc96ffd4f258d1dcc82ab4f56e.zip
Should be starting with the least available and getting more so, instead of the other way around.
-rw-r--r--src/status-service.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}