summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCynthia Revström <me@cynthia.re>2021-03-29 15:18:20 +0200
committerCynthia Revström <me@cynthia.re>2021-03-29 15:18:20 +0200
commit38f45583f01276320101ab862d8acd09b892621f (patch)
treed70467dd0acbc4d85222049bd8cdea2f3c24c1d7
parent1c26711cecfb7dd99f42844ab8227ff37f39c5b6 (diff)
Update chrome_ram utilmain
-rwxr-xr-xbin/chrome_ram2
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"