From b6a35e12ca5ffe60e446b903fbf36e53eecbade3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 4 Dec 2019 01:19:01 +0100 Subject: README update --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 69d4ef5..66914ec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,6 +15,7 @@ int main(int argc, const char *argv[]) { string arg_two; int batlvlint; + msg = "Beep beep - low battery"; if (argc > 1) { arg_one = argv[1]; if (argc > 2) @@ -24,9 +25,6 @@ int main(int argc, const char *argv[]) { msg = arg_two; } } - else { - msg = "Beep beep - low battery"; - } while (true) { acstat = jo_exec("acpi | awk '{print $3}' | rev | cut -c 2- | rev"); -- cgit v1.2.3