Преглед изворни кода

Fix disk_perc by casting it to int

master
Aaron Marcher пре 6 година
родитељ
комит
dcffaeaf57
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +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 *


Loading…
Откажи
Сачувај