Show the number of cpu cores.
authorroot <root@uhweb28124.united-hoster.com>
Wed, 18 Jun 2008 10:59:53 +0000 (12:59 +0200)
committerroot <root@uhweb28124.united-hoster.com>
Wed, 18 Jun 2008 10:59:53 +0000 (12:59 +0200)
.gitignore
build/build.py

index 2032065..cd55fea 100644 (file)
@@ -2,6 +2,7 @@
 /build/db
 /build/tmp
 /forum
+/git
 /mirror1
 /pakfire/2.*
 /pakfire/3.*
index edaf98c..0cade55 100644 (file)
@@ -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<td class='state' colspan='2' width='80%'><b>",
                print stage2desc[self.state],
                print "</b></td>"
-               print "\t\t<td class='state' rowspan='7' width='20%'>",
+               print "\t\t<td class='state' rowspan='8' width='20%'>",
                print "<img alt='%s' width='128px' height='128px' src='/images/%s.png' />" % (self.state, self.state,),
                print "</td>"
                print "\t</tr>"
                
                ## 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<tr>"
                        print "\t\t<td class='sys' width='60%'><b>",
                        print sys2desc[key]