summaryrefslogtreecommitdiff
path: root/bin/chrome_ram
diff options
context:
space:
mode:
authorCynthia Revström <me@cynthia.re>2020-04-26 13:08:12 +0200
committerCynthia Revström <me@cynthia.re>2020-04-26 13:08:12 +0200
commit1c26711cecfb7dd99f42844ab8227ff37f39c5b6 (patch)
tree125f2639d4ad09c0d3fb30c9e8d68a82963f4908 /bin/chrome_ram
parente6e0856f4e9b31000af309cdb33a5f84877f8c19 (diff)
some scripts
Diffstat (limited to 'bin/chrome_ram')
-rwxr-xr-xbin/chrome_ram3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/chrome_ram b/bin/chrome_ram
new file mode 100755
index 0000000..e59676a
--- /dev/null
+++ b/bin/chrome_ram
@@ -0,0 +1,3 @@
+#!/bin/bash
+mib=$(ps aux | grep '/opt/google/chrome/chrome' | awk '{print $6}' | paste -sd+ - | bc | sed 's/$/\*1000\/1048576/' | bc)
+echo "$mib MiB"