aboutsummaryrefslogtreecommitdiff
path: root/sysutils/byobu/files/patch-usr_lib_byobu_memory
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/byobu/files/patch-usr_lib_byobu_memory')
-rw-r--r--sysutils/byobu/files/patch-usr_lib_byobu_memory11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/byobu/files/patch-usr_lib_byobu_memory b/sysutils/byobu/files/patch-usr_lib_byobu_memory
new file mode 100644
index 000000000000..b4952a8fbfae
--- /dev/null
+++ b/sysutils/byobu/files/patch-usr_lib_byobu_memory
@@ -0,0 +1,11 @@
+--- usr/lib/byobu/memory.orig 2019-08-23 17:23:09 UTC
++++ usr/lib/byobu/memory
+@@ -52,7 +52,7 @@ __memory() {
+ buffers_plus_cached=$(($buffers+$cached))
+ # "free output" buffers and cache (output from 'free')
+ fo_buffers=$(($kb_main_used - $buffers_plus_cached))
+- fpdiv $((100*${fo_buffers})) "${total}" 0;
++ fpdiv $((100*${kb_main_used})) "${total}" 0;
+ usage=${_RET}
+ if [ $total -ge 1048576 ]; then
+ fpdiv "$total" 1048567 1