neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Wrong memory display in OS X

Open keysona opened this issue 8 years ago • 1 comments

Description

The memory display may be wrong in os x(10.13.5). I find the strange code in neofetch.

In my mac(os x: 10.13.5), I run vm_stat, the output is:

$ vm_stat
...
Pages active:                           1508737.
Pages inactive:                         1122740.
...
# neofetch file's line: 2204
mem_active="$(vm_stat | awk '/active / { printf $3 }')"

There is space after active.

I echo the mem_active, the output is blank string.

I think the space should be ahead of the active, as follows:

mem_active="$(vm_stat | awk '/ active/ { printf $3 }')"

The output

$ vm_stat | awk '/ active/ { printf $3 }'
1673460.

Neofetch version

5.0.0

Screenshot

No.

Config file

Default.

Verbose log

  1. Run neofetch -vv 2> neofetchlog
  2. Upload the contents of neofetchlog to pastebin, gist or equivalent.

keysona avatar Jun 29 '18 08:06 keysona

@iandrewt

dylanaraps avatar Jul 05 '18 23:07 dylanaraps