mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Memory: fix percentage calculation
This commit is contained in:
@@ -5,7 +5,7 @@ void ffDetectMemoryImpl(FFMemoryResult* memory);
|
||||
|
||||
static void calculatePercentage(FFMemoryStorage* storage)
|
||||
{
|
||||
if(storage->error.length == 0)
|
||||
if(storage->error.length != 0)
|
||||
return;
|
||||
|
||||
if(storage->bytesTotal == 0)
|
||||
|
||||
Reference in New Issue
Block a user