diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-22 17:35:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-22 17:35:11 +0100 |
commit | cf3143ce1df8953091fe1bf53e9746af17f0c109 (patch) | |
tree | 9600e4d062e1429f22ad39ef9bcc8058f5ed1e5e | |
parent | Warning level back to 15% (diff) | |
download | lowbat-gnu-cf3143ce1df8953091fe1bf53e9746af17f0c109.tar.gz lowbat-gnu-cf3143ce1df8953091fe1bf53e9746af17f0c109.tar.bz2 lowbat-gnu-cf3143ce1df8953091fe1bf53e9746af17f0c109.tar.xz lowbat-gnu-cf3143ce1df8953091fe1bf53e9746af17f0c109.tar.zst lowbat-gnu-cf3143ce1df8953091fe1bf53e9746af17f0c109.zip |
Bug fix
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b9bf375..497ff40 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,6 +46,7 @@ int main(int argc, const char *argv[]) { batlvl.clear(); batlvl = jo_exec("acpi | awk '{print $4}' | rev | cut -c 3- | rev"); batlvl.erase(remove(batlvl.begin(), batlvl.end(), '\n'), batlvl.end()); + batlvlint = stoi(batlvl); } cout << "Sleep for 4m" << endl; sleep_for(seconds(240)); |