/[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.1 - (show annotations) (download) (as text)
Tue Apr 29 23:00:41 2003 UTC (15 years, 5 months ago) by mksoft
Branch: MAIN
File MIME type: application/vnd.groove-tool-template
added cpu page and template

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 * $Id$
7 *
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 {include file="footer.tpl"}

  ViewVC Help
Powered by ViewVC 1.1.20