This website works better with JavaScript.
Home
Explore
Help
Sign In
rinri
/
slstatus
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix disk_perc by casting it to int
master
Aaron Marcher
6 years ago
parent
4fc4983502
commit
dcffaeaf57
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
components/disk.c
+ 2
- 2
components/disk.c
View File
@@ -30,8 +30,8 @@ disk_perc(const char *mnt)
return NULL;
}
return bprintf("%d", 100 *
(1.0f - ((float)fs.f_bfree / (float)fs.f_blocks)));
return bprintf("%d",
(int)(
100 *
(1.0f - ((float)fs.f_bfree / (float)fs.f_blocks)))
)
;
}
const char *
Write
Preview
Loading…
Cancel
Save