Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Better NetBSD memory and uptime #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pfetch
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ get_host() {
;;

(NetBSD*)
host=$(sysctl -n machdep.dmi.system-vendor \
machdep.dmi.system-product)
host=$(/sbin/sysctl -n machdep.dmi.system-vendor \
machdep.dmi.system-product)
;;

(OpenBSD*)
Expand Down Expand Up @@ -485,7 +485,7 @@ get_uptime() {
# converting that data into days, hours and minutes using simple
# math.
case $os in
(Linux* | Minix* | SerenityOS*)
(Linux* | Minix* | SerenityOS* | NetBSD*)
IFS=. read -r s _ < /proc/uptime
;;

Expand Down