mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-09 06:30:10 +01:00
editorconfig
This commit is contained in:
@@ -38,7 +38,7 @@ static void printBattery(FFinstance* instance, uint8_t index)
|
||||
manufactor.length == 0 &&
|
||||
model.length == 0 &&
|
||||
technology.length == 0 &&
|
||||
capacity.length == 0 &&
|
||||
capacity.length == 0 &&
|
||||
status.length == 0
|
||||
) {
|
||||
ffPrintError(instance, key, "No file in /sys/class/power_supply/BAT0/ could be read or all battery options are disabled");
|
||||
@@ -59,7 +59,7 @@ static void printBattery(FFinstance* instance, uint8_t index)
|
||||
if(capacity.length > 0)
|
||||
{
|
||||
printf("[%s%%", capacity.chars);
|
||||
|
||||
|
||||
if(status.length == 0)
|
||||
puts("]");
|
||||
else
|
||||
@@ -105,4 +105,4 @@ void ffPrintBattery(FFinstance* instance)
|
||||
closedir(dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user