diff options
| author | Cynthia Revström <me@cynthia.re> | 2021-03-29 15:18:20 +0200 |
|---|---|---|
| committer | Cynthia Revström <me@cynthia.re> | 2021-03-29 15:18:20 +0200 |
| commit | 38f45583f01276320101ab862d8acd09b892621f (patch) | |
| tree | d70467dd0acbc4d85222049bd8cdea2f3c24c1d7 | |
| parent | 1c26711cecfb7dd99f42844ab8227ff37f39c5b6 (diff) | |
Update chrome_ram utilmain
| -rwxr-xr-x | bin/chrome_ram | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chrome_ram b/bin/chrome_ram index e59676a..04f96ed 100755 --- a/bin/chrome_ram +++ b/bin/chrome_ram @@ -1,3 +1,3 @@ #!/bin/bash -mib=$(ps aux | grep '/opt/google/chrome/chrome' | awk '{print $6}' | paste -sd+ - | bc | sed 's/$/\*1000\/1048576/' | bc) +mib=$(ps -eo rss,cmd | grep '/opt/google/chrome/chrome' | awk '{print $1}' | paste -sd+ - | bc | sed 's/$/\*1000\/1048576/' | bc) echo "$mib MiB" |
