mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-12-04 21:48:21 +00:00
pfetch: code style changes
This commit is contained in:
1 parent
a9af270b96
commit
02a9bd84af
1 file changed
+5
-2
@@ -631,8 +631,11 @@ get_memory() {
|
|||||||
SunOS)
|
SunOS)
|
||||||
hw_pagesize=$(pagesize)
|
hw_pagesize=$(pagesize)
|
||||||
|
|
||||||
while read -r _ p; do
|
while read -r key val; do
|
||||||
: "${pages_total:+"${pages_free="$p"}"}" "${pages_total="$p"}"
|
case $key in
|
||||||
|
*total) pages_total=$val ;;
|
||||||
|
*free) pages_free=$val ;;
|
||||||
|
esac
|
||||||
done <<-EOF
|
done <<-EOF
|
||||||
$(kstat -p unix:0:system_pages:pagestotal \
|
$(kstat -p unix:0:system_pages:pagestotal \
|
||||||
unix:0:system_pages:pagesfree)
|
unix:0:system_pages:pagesfree)
|
||||||
|
|||||||
Reference in new issue
Block a user