mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
fixed battery key index on multi battery systems
This commit is contained in:
@@ -144,7 +144,7 @@ void ffPrintBattery(FFinstance* instance)
|
||||
{
|
||||
FFstrbuf* name = ffListGet(&dirs, i);
|
||||
ffStrbufAppend(&baseDir, name);
|
||||
printBattery(instance, &baseDir, dirs.length == 1 ? 0 : i);
|
||||
printBattery(instance, &baseDir, dirs.length == 1 ? 0 : i + 1);
|
||||
ffStrbufSubstrBefore(&baseDir, baseDirLength);
|
||||
ffStrbufDestroy(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user