localPackages.hpcstat: fix

This commit is contained in:
陈浩南 2024-06-08 15:35:34 +08:00
parent 0a2e7e04e5
commit 1886f7e647

View File

@ -63,7 +63,7 @@ int main(int argc, const char** argv)
std::cerr << "Failed to get disk usage statistic.\n";
else
{
double percent = disk_stat->Total / 800;
double percent = disk_stat->Total / 800 * 100;
auto color = percent > 95 ? termcolor::red<char> :
percent > 80 ? termcolor::yellow<char> : termcolor::green<char>;
auto bgcolor = percent > 95 ? termcolor::on_red<char> :