diff --git a/local/pkgs/hpcstat/src/main.cpp b/local/pkgs/hpcstat/src/main.cpp index 043d67ae..2aaf9957 100644 --- a/local/pkgs/hpcstat/src/main.cpp +++ b/local/pkgs/hpcstat/src/main.cpp @@ -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 : percent > 80 ? termcolor::yellow : termcolor::green; auto bgcolor = percent > 95 ? termcolor::on_red :