aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-04 02:21:49 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-04 02:21:49 +0100
commit421ce8f7887d5ff045645464f6dd495718624761 (patch)
treee67eee694b71eede15ea872ba431edd459ba290b /src
parentREADME update (diff)
downloadlowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.gz
lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.bz2
lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.xz
lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.zst
lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.zip
Warns under 15% battery
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 590f2d8..9fae9e1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -24,7 +24,7 @@ int main(int argc, const char *argv[]) {
acstat.erase(remove(acstat.begin(), acstat.end(), '\n'), acstat.end());
batlvl.erase(remove(batlvl.begin(), batlvl.end(), '\n'), batlvl.end());
batlvlint = stoi(batlvl);
- if (batlvlint < 90) {
+ if (batlvlint < 15) {
while (!strcmp(acstat.c_str(), "Discharging")) {
jo_notify(batlvl);
if (strcmp(arg_one.c_str(), "--silent")) {