summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/system_information.widget.php
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2012-01-11 08:17:38 -0800
committerJim P <jim@pingle.org>2012-01-11 08:17:38 -0800
commitc6678f31b0e48b310bd49e392b6977a77c174e10 (patch)
tree8a6e89793eba072c83f07da0ef5bbf0ad2f1f0b8 /usr/local/www/widgets/widgets/system_information.widget.php
parent12c7b5778418734a7ebbd816bb75522ca17a2a54 (diff)
parente9ca9b9a35c5e7c9c2fb6025c54da420d901cc49 (diff)
downloadpfsense-c6678f31b0e48b310bd49e392b6977a77c174e10.zip
pfsense-c6678f31b0e48b310bd49e392b6977a77c174e10.tar.gz
Merge pull request #37 from Joecowboy/master
Dashboard widget fixes and mods
Diffstat (limited to 'usr/local/www/widgets/widgets/system_information.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index 9a7dc55..7dab2cc 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -200,6 +200,17 @@ $curcfg = $config['system']['firmware'];
<?= $mbufs_total ?>/<?= $mbufs_max ?>
</td>
</tr>
+ <?php if (get_temp() != ""): ?>
+ <tr>
+ <td width="25%" class="vncellt">Temperature</td>
+ <td width="75%" class="listr">
+ <?php $TempMeter = $temp = get_temp(); ?>
+ <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= $TempMeter; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $TempMeter); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />
+ &nbsp;
+ <input style="border: 0px solid white;" size="30" name="tempmeter" id="tempmeter" value="<?= $temp."&#176;C"; ?>" />
+ </td>
+ </tr>
+ <?php endif; ?>
<tr>
<td width="25%" class="vncellt">CPU usage</td>
<td width="75%" class="listr">
OpenPOWER on IntegriCloud