Ver Fonte

loading thresholds state

Aaron Marcher há 8 anos atrás
pai
commit
cceeec0efa
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      slstatus.c

+ 2 - 0
slstatus.c

@@ -140,6 +140,8 @@ battery_state(const char *bat)
 		return smprintf("-");
 	} else if (strcmp(state, "Full") == 0) {
 		return smprintf("=");
+	} else if (strcmp(state, "Unknown") == 0) {
+		return smprintf("/");
 	} else {
 		return smprintf("?");
 	}