* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / contrib / neofetch / hotfix-sparc.patch
blob105ec1aab2954806fbd16bdb6ad098d45da5aabb
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/neofetch/hotfix-sparc.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- neofetch-7.1.0/neofetch.vanilla 2024-09-29 16:34:47.935987704 +0000
15 +++ neofetch-7.1.0/neofetch 2024-09-29 16:35:02.483987396 +0000
16 @@ -2123,7 +2123,7 @@
18 # Get CPU cores.
19 case $cpu_cores in
20 - "logical" | "on") cores="$(grep -c "^processor" "$cpu_file")" ;;
21 + "logical" | "on") cores="$(grep -c "^\(processor\|CPU.*online\)" "$cpu_file")" ;;
22 "physical") cores="$(awk '/^core id/&&!a[$0]++{++i} END {print i}' "$cpu_file")" ;;
23 esac