diff options
author | Joecowboy <i7wasn7m3@gmail.com> | 2012-01-05 19:13:50 -0600 |
---|---|---|
committer | Joecowboy <i7wasn7m3@gmail.com> | 2012-01-05 19:13:50 -0600 |
commit | 135a095656d54923ed52146259782404b05698e1 (patch) | |
tree | cde21fa5d32a859f72e40a9cf93fc6c848f32aab /usr/local/www | |
parent | cbac040da55e6cb806d24366488ca100a6ce7d55 (diff) | |
download | pfsense-135a095656d54923ed52146259782404b05698e1.zip pfsense-135a095656d54923ed52146259782404b05698e1.tar.gz |
Update usr/local/www/widgets/widgets/system_information.widget.php
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 0194c58..757e5c8 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -200,15 +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 = "0"; $temp = "0"; ?> + <?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" /> <input style="border: 0px solid white;" size="30" name="tempmeter" id="tempmeter" value="<?= $temp."°C"; ?>" /> </td> </tr> + <?php endif; ?> <tr> <td width="25%" class="vncellt">CPU usage</td> <td width="75%" class="listr"> |