MOTD too conservative about showing sysinfo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: landscape-client
On multi-core machines, the policy of not showing system information on login if load is 1.0 or greater, as implemented by /usr/share/
--- landscape-
+++ landscape-
@@ -1,5 +1,6 @@
#!/bin/sh
-if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < 1.0" | bc) -eq 1 ]; then
+CORES=$(grep -c '^core id\b' /proc/cpuinfo)
+if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < $CORES.0" | bc) -eq 1 ]; then
echo
echo -n " System information as of "
/bin/date
@@ -7,5 +8,5 @@
/usr/
else
echo
- echo " System information disabled due to load higher than 1"
+ echo " System information disabled due to load higher than $CORES"
fi
ProblemType: Bug
Architecture: i386
Date: Mon Oct 25 10:07:19 2010
DistroRelease: Ubuntu 9.10
Package: landscape-common 1.5.5.1-
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: landscape-client
Uname: Linux 2.6.31-