diff --git a/dot b/dot index 3a6fb28..cb65f0d 100755 Binary files a/dot and b/dot differ diff --git a/dot.c b/dot.c index 74bcb5e..a94cf6b 100644 --- a/dot.c +++ b/dot.c @@ -18,7 +18,7 @@ void print_load() { return; } if(loadavg[0] > 2.0){ - int result = system("ps aux"); + int result = system("ps aux | awk '$3 > 1.0' | sort -k3 -nr"); (void)result; } printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);