mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
localPackages.hpcstat: fix
This commit is contained in:
parent
0a2e7e04e5
commit
1886f7e647
@ -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> :
|
||||
|
Loading…
Reference in New Issue
Block a user