From: root Date: Wed, 18 Jun 2008 10:59:53 +0000 (+0200) Subject: Show the number of cpu cores. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cd3657694d71a0ec5ec3ee173d045da08f0243d;p=ipfire.org.git Show the number of cpu cores. --- diff --git a/.gitignore b/.gitignore index 20320655..cd55feab 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /build/db /build/tmp /forum +/git /mirror1 /pakfire/2.* /pakfire/3.* diff --git a/build/build.py b/build/build.py index edaf98cf..0cade550 100644 --- a/build/build.py +++ b/build/build.py @@ -74,6 +74,7 @@ sys2desc = { "CPU_NAME" : "CPU model", "CPU_MIPS" : "Bogomips", "CPU_MHZ" : "CPU MHz", + "CPU_CNT" : "CPU cores", "MEM_SIZE" : "Memory size", } @@ -276,13 +277,13 @@ class Builder: print "\t\t", print stage2desc[self.state], print "" - print "\t\t", + print "\t\t", print "%s" % (self.state, self.state,), print "" print "\t" ## give sys info - for key in [ "CPU_NAME", "CPU_MHZ", "CPU_MIPS", "MEM_SIZE", ]: + for key in ["CPU_NAME", "CPU_MHZ", "CPU_CNT", "CPU_MIPS", "MEM_SIZE"]: print "\t" print "\t\t", print sys2desc[key]