mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-25 07:25:27 -04:00
feat: shorten long commands
This commit is contained in:
parent
f63b5132ba
commit
bc1072d099
2 changed files with 5 additions and 7 deletions
|
@ -6,12 +6,10 @@
|
|||
set -eu
|
||||
|
||||
conf="${HOME}/.bitcoin/conf.d/dbcache.conf"
|
||||
domid="$(xenstore-read -- domid)"
|
||||
xenstore_mem_dir="/local/domain/${domid}/memory"
|
||||
if test -f /var/run/qubes-service/meminfo-writer; then
|
||||
mem_KiB="$(xenstore-read -- "${xenstore_mem_dir}/hotplug-max")"
|
||||
mem_KiB="$(xenstore-read -- memory/hotplug-max)"
|
||||
else
|
||||
mem_KiB="$(xenstore-read -- "${xenstore_mem_dir}/static-max")"
|
||||
mem_KiB="$(xenstore-read -- memory/static-max)"
|
||||
fi
|
||||
cache_MiB=$((mem_KiB/1024))
|
||||
cache="$((cache_MiB*80/100))"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue