From 6c5ff287ae0e8d5ca448688639cbe996f35bee5d Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 3 Feb 2021 15:55:07 +0100 Subject: [PATCH] Fix typo --- sysmon.c | 2 +- sysmond.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysmon.c b/sysmon.c index 951b880..3ada996 100644 --- a/sysmon.c +++ b/sysmon.c @@ -609,7 +609,7 @@ static int ini_handle(void *user_data, const char *section, const char *name, co { opts->bat_stat.min_voltage = atoi(value); } - else if (EQU(name, "battery_cutoff_votalge")) + else if (EQU(name, "battery_cutoff_voltage")) { opts->bat_stat.cutoff_voltage = atoi(value); } diff --git a/sysmond.conf b/sysmond.conf index 8099bfc..c6356cb 100644 --- a/sysmond.conf +++ b/sysmond.conf @@ -1,7 +1,7 @@ # Battery configuration battery_max_voltage = 12600 battery_min_voltage = 10000 -battery_cutoff_votalge = 9000 +battery_cutoff_voltage = 9000 battery_divide_ratio = 3.36 battery_input = /sys/class/hwmon/hwmon2/device/in3_input