diff options
author | terminaldweller <thabogre@gmail.com> | 2022-12-31 19:47:18 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-12-31 19:47:18 +0000 |
commit | 4065b9e083e5e72eb2cb79394b6e1a449d0da335 (patch) | |
tree | 3bf59e16d18b967c28ed60853159dae45cde0a52 /bin | |
parent | update (diff) | |
download | scripts-4065b9e083e5e72eb2cb79394b6e1a449d0da335.tar.gz scripts-4065b9e083e5e72eb2cb79394b6e1a449d0da335.zip |
update
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/run_with_dmenu.sh | 1 | ||||
-rwxr-xr-x | bin/virttop | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/run_with_dmenu.sh b/bin/run_with_dmenu.sh index 8fda128..08580ca 100755 --- a/bin/run_with_dmenu.sh +++ b/bin/run_with_dmenu.sh @@ -1,4 +1,5 @@ #!/usr/bin/env zsh +# shellcheck source=../zshrc_stripped.sh . ~/scripts/zshrc_stripped.sh COMMAND=$(echo "" | dmenu -fn "DejaVuSansMono Nerd Font Mono-11.3;antialias=true;autohint=true" -l 20 -p "Quick Term:") RESULT=$(eval "$COMMAND") diff --git a/bin/virttop b/bin/virttop index be67a48..61dfd04 100755 --- a/bin/virttop +++ b/bin/virttop @@ -251,9 +251,9 @@ def fill_virt_data_uri( mem_stats = dom.memoryStats() virt_data.mem_actual.append(size_abr(mem_stats["actual"], 1000)) - # BSD guests dont have unused memory + # BSD guests dont support mem balloons? try: - virt_data.mem_unused.append(size_abr(mem_stats["unused"], 1000)) + virt_data.mem_unused.append(size_abr(mem_stats["available"], 1000)) except KeyError: virt_data.mem_unused.append("N/A") @@ -312,7 +312,7 @@ def main() -> None: "NAME", "CPU", "MEM_ACTUAL", - "MEM_UNUSED", + "MEM_AVAIL", "NET_WRITE_B", "NET_READ_B", "MAC", |