summaryrefslogtreecommitdiff
path: root/Ports/neofetch
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-07-14 15:33:35 +0300
committerAndreas Kling <kling@serenityos.org>2022-07-14 23:27:46 +0200
commit7b7847c707275de1469548ad7f08745a3356ac52 (patch)
tree3603a1e8d85bb5e7e754bb0aca75b23fc498bf04 /Ports/neofetch
parente4e5fa74d0e45975a82784d65f5d1b26fd66e2f8 (diff)
downloadserenity-7b7847c707275de1469548ad7f08745a3356ac52.zip
Ports: Update neofetch to use the right /proc/memstat values
Diffstat (limited to 'Ports/neofetch')
-rw-r--r--Ports/neofetch/patches/0001-Add-support-for-serenity.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ports/neofetch/patches/0001-Add-support-for-serenity.patch b/Ports/neofetch/patches/0001-Add-support-for-serenity.patch
index 07712d257d..fc59e58877 100644
--- a/Ports/neofetch/patches/0001-Add-support-for-serenity.patch
+++ b/Ports/neofetch/patches/0001-Add-support-for-serenity.patch
@@ -10,7 +10,7 @@ Co-Authored-By: Nico Weber <thakis@chromium.org>
1 file changed, 90 insertions(+), 31 deletions(-)
diff --git a/neofetch b/neofetch
-index 1e4b564..ea5e351 100755
+index 1e4b564..d2a12cd 100755
--- a/neofetch
+++ b/neofetch
@@ -794,7 +794,7 @@ image_source="auto"
@@ -124,10 +124,10 @@ index 1e4b564..ea5e351 100755
+ "SerenityOS")
+ memstat="$(cat /proc/memstat)"
-+ user_physical_allocated="$(echo $memstat | jq .user_physical_allocated)"
-+ user_physical_available="$(echo $memstat | jq .user_physical_available)"
-+ mem_used="$((user_physical_allocated * 4096 / 1024 / 1024))"
-+ mem_free="$((user_physical_available * 4096 / 1024 / 1024))"
++ physical_allocated="$(echo $memstat | jq .physical_allocated)"
++ physical_available="$(echo $memstat | jq .physical_available)"
++ mem_used="$((physical_allocated * 4096 / 1024 / 1024))"
++ mem_free="$((physical_available * 4096 / 1024 / 1024))"
+ mem_total="$((mem_used + mem_free))"
+ ;;
+