Skip to content

Commit 5c43119

Browse files
Fix used disk space calculation
1 parent 545210e commit 5c43119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/disk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void printStatvfs(FFinstance* instance, const FFstrbuf* key, const char*
3333
return;
3434
}
3535

36-
uint64_t used = total - (fs->f_bfree * fs->f_frsize);
36+
uint64_t used = total - (fs->f_bavail * fs->f_frsize);
3737
uint32_t files = (uint32_t) (fs->f_files - fs->f_ffree);
3838
uint8_t percentage = (uint8_t) ((used / (long double) total) * 100.0);
3939

0 commit comments

Comments
 (0)