mirror of
https://github.com/actuallymentor/battery.git
synced 2026-03-16 22:12:08 +00:00
Address the second set of comments from Copilot
This commit is contained in:
@@ -133,7 +133,7 @@ const enable_battery_limiter = async () => {
|
||||
try {
|
||||
const status = await get_battery_status()
|
||||
const allow_force_discharge = get_force_discharge_setting()
|
||||
// 'batery maintain' creates a child process, so when the command exits exec_async does not return.
|
||||
// 'battery maintain' creates a child process, so when the command exits exec_async does not return.
|
||||
// That's why here we use a timeout and wait for some time.
|
||||
await exec_async(
|
||||
`${ battery } maintain ${ status?.maintain_percentage || 80 }${ allow_force_discharge ? ' --force-discharge' : '' }`,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { promises: fs } = require( 'fs' )
|
||||
const { HOME } = process.env
|
||||
const util = require("util");
|
||||
const util = require( 'util' )
|
||||
|
||||
let has_alerted_user_no_home = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user