Skip to content

Commit

Permalink
Update 50-landscape-sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Sep 14, 2019
1 parent 513d3fe commit 8fdc7d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions menu/motd/50-landscape-sysinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

#!/bin/sh
#
# NOTE UBU only
#

cores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
[ "$cores" -eq "0" ] && cores=1
threshold="${cores:-1}.0"
Expand Down

0 comments on commit 8fdc7d1

Please sign in to comment.