This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
rinri
/
slstatus
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
Fix disk_perc by casting it to int
master
Aaron Marcher
пре 6 година
родитељ
4fc4983502
комит
dcffaeaf57
1 измењених фајлова
са
2 додато
и
2 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
components/disk.c
+ 2
- 2
components/disk.c
Прегледај датотеку
@@ -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…
Откажи
Сачувај