aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 16:02:18 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 16:02:18 +0100
commitbee85722628e77c13b16651e17524437019a5e40 (patch)
tree104246780c0cb411b9bbc4ee5aa1e562ef31ce6d /src
parentwork in progress (diff)
downloadlowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.gz
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.bz2
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.xz
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.zst
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.zip
in progress
Diffstat (limited to 'src')
-rw-r--r--src/jo_lowbat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jo_lowbat.cpp b/src/jo_lowbat.cpp
index ab74eaf..96686e5 100644
--- a/src/jo_lowbat.cpp
+++ b/src/jo_lowbat.cpp
@@ -35,7 +35,7 @@ Lowbat::jo_fetchBatlvl(void) {
uint8_t batlvlint;
cout << "Fetching batlvl: ";
- batlvl = this->jo_exec("acpi | awk '{print $4}' | rev | cut -c 3- | rev");
+ batlvl = Lowbat::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 << batlvlint << "%" << endl;