summaryrefslogtreecommitdiff
path: root/src/sleep
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-08-02 02:43:38 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-02 02:43:38 +0900
commit5162b2a1c4fa35ea4c7abdd075f9a4df13ea4f0e (patch)
treee1e063fefc38d5d1853aaff7563006e0ba3ba266 /src/sleep
parentbc4b9a7117b617341231be703b2ea3d0639ee9bf (diff)
downloadsystemd-5162b2a1c4fa35ea4c7abdd075f9a4df13ea4f0e.tar.gz
tree-wide: fix typo
Diffstat (limited to 'src/sleep')
-rw-r--r--src/sleep/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index a1905dbc27..ff6c71d61b 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -304,7 +304,7 @@ static int execute_s2h(const SleepConfig *sleep_config) {
assert(previous_discharge_rate != 0);
suspend_interval = usec_sub_unsigned(last_capacity * USEC_PER_HOUR / previous_discharge_rate, 30 * USEC_PER_MINUTE);
/* The previous discharge rate is stored in per hour basis so converted to minutes.
- * Substracted 30 minutes from the result to keep a buffer of 30 minutes before battery gets critical */
+ * Subtracted 30 minutes from the result to keep a buffer of 30 minutes before battery gets critical */
}
log_debug("Set timerfd wake alarm for %s", FORMAT_TIMESPAN(suspend_interval, USEC_PER_SEC));
/* Wake alarm for system with or without battery to hibernate or estimate discharge rate whichever is applicable */