/[gentoo-src]/gentoo-stats/templates/cpus.tpl
Gentoo

Contents of /gentoo-stats/templates/cpus.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Fri May 9 10:01:08 2003 UTC (15 years, 2 months ago) by mksoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +11 -1 lines
File MIME type: application/vnd.groove-tool-template
intital cards page/template

1 mksoft 1.1 {*
2     * Gentoo stats
3     * Written by Meir Kriheli <mksoft@gentoo.org>
4     * Based on gentoo-stats by Maik Schreiber <blizzy@gentoo.org>
5     *
6 mksoft 1.2 * $Id: cpus.tpl,v 1.1 2003/04/29 23:00:41 mksoft Exp $
7 mksoft 1.1 *
8     * vim: set tabstop=4 shiftwidth=4:
9     *}
10     {include file="header.tpl"}
11     <h1>CPUs statistics</h1>
12     <table cellspacing="1" cellpadding="4" style="margin-left:auto; margin-right:auto;">
13     <tr>
14     <td class="grid2">Total # of monitored CPUs</td>
15     <td class="grid2" style="text-align:right;">&nbsp;{$total_cpus}</td>
16     </tr>
17     </table>
18     <h2>CPU vendors</h2>
19     <table cellspacing="1" cellpadding="4" style="margin-left:auto; margin-right:auto;">
20     {section name=vendor loop=$cpu_vendors}
21     <tr>
22     <td class="grid2">{$cpu_vendors[vendor].cv_name}</td>
23     <td class="grid2" style="text-align:right;">&nbsp;&nbsp;{$cpu_vendors[vendor].cv_count}</td>
24     <td class="grid2" style="text-align:right;">&nbsp;&nbsp;{$cpu_vendors[vendor].cv_percent}%</td>
25     <td class="grid2"><img src="bar.png" height="20" width="{$cpu_vendors[vendor].bar_width}"><img src="bar_empty.png" height="20" width="{$cpu_vendors[vendor].bar_empty_width}"></td>
26     </tr>
27     {/section}
28     </table>
29     <h2>CPU models</h2>
30 mksoft 1.2 <table cellspacing="1" cellpadding="4" style="margin-left:auto; margin-right:auto;">
31     {section name=model loop=$cpu_models}
32     <tr>
33     <td class="grid2">{$cpu_models[model].cm_name}</td>
34     <td class="grid2" style="text-align:right;">&nbsp;&nbsp;{$cpu_models[model].cm_count}</td>
35     <td class="grid2" style="text-align:right;">&nbsp;&nbsp;{$cpu_models[model].cm_percent}%</td>
36     <td class="grid2"><img src="bar.png" height="20" width="{$cpu_models[model].bar_width}"><img src="bar_empty.png" height="20" width="{$cpu_models[model].bar_empty_width}"></td>
37     </tr>
38     {/section}
39     </table>
40 mksoft 1.1 {include file="footer.tpl"}

  ViewVC Help
Powered by ViewVC 1.1.20