aboutsummaryrefslogtreecommitdiff
path: root/src/status-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/status-service.c')
-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;
}
}