From 6d45328d0217e1398c42462ac975f55251e870ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Schmidts?= Date: Tue, 14 Aug 2012 12:11:44 +0200 Subject: [PATCH] Revert "nproc is slightly faster than grep on my machine" This reverts commit 3abc3999ddaff697cfc6f7f6880710a225628e15. Conserving retro compatibility with lenny. --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 9e5e9b1..766a19b 100755 --- a/liquidprompt +++ b/liquidprompt @@ -186,7 +186,7 @@ fi # get cpu number _lp_cpunum_Linux() { - nproc + grep -c '^[Pp]rocessor' /proc/cpuinfo } _lp_cpunum_FreeBSD()