]> git.ipfire.org Git - ipfire.org.git/commitdiff
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 2032065575673404dd9b402df1779d3e8b028c53..cd55feab8c959ec22cb0cfa992cd38ceee6d4958 100644 (file)
@@ -2,6 +2,7 @@
 /build/db
 /build/tmp
 /forum
 /build/db
 /build/tmp
 /forum
+/git
 /mirror1
 /pakfire/2.*
 /pakfire/3.*
 /mirror1
 /pakfire/2.*
 /pakfire/3.*
index edaf98cf8227206d5c50a4eaa1ff56088df23a92..0cade550ff65dbc175ef821da880ce803fb65ca4 100644 (file)
@@ -74,6 +74,7 @@ sys2desc = {
        "CPU_NAME" : "CPU model",
        "CPU_MIPS" : "Bogomips",
        "CPU_MHZ"  : "CPU MHz",
        "CPU_NAME" : "CPU model",
        "CPU_MIPS" : "Bogomips",
        "CPU_MHZ"  : "CPU MHz",
+       "CPU_CNT"  : "CPU cores",
        "MEM_SIZE" : "Memory size",
 } 
 
        "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' 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
                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]
                        print "\t<tr>"
                        print "\t\t<td class='sys' width='60%'><b>",
                        print sys2desc[key]