Module: nagvis
Branch: master
Commit: 8aafb3f2f14caf14fc9d4f4ae74456ac0b1235f5
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=8aafb3f2f14caf14fc9d4f4ae74456ac0b1235f5

Author: Lars Michelsen <[email protected]>
Date:   Tue Oct 12 11:34:15 2010 +0200

#299 added missing credits for the fix - thanks hipska

---

 share/userfiles/gadgets/std_speedometer.php  |    8 ++++++--
 share/userfiles/gadgets/std_speedometer2.php |    4 ++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/share/userfiles/gadgets/std_speedometer.php 
b/share/userfiles/gadgets/std_speedometer.php
index 4eec393..1ffd0e7 100644
--- a/share/userfiles/gadgets/std_speedometer.php
+++ b/share/userfiles/gadgets/std_speedometer.php
@@ -147,11 +147,15 @@ imagecolortransparent($img, $oBackground);
 imagefilledarc($img,$centerx, $centery, $outerdia, $outerdia, 180, 0, $oGreen, 
IMG_ARC_EDGED);
 
 // Warning
-if($warn && $warnp <= -1)
+if($warn && $warnp <= -1) {
+       // The "360 +" fix has been worked out by hipska. Thanks for that!
        imagefilledarc($img, $centerx, $centery, $outerdia, $outerdia, 360 + 
$warnp, 0, $oYellow, IMG_ARC_EDGED);
+}
 // Critical
-if($crit && $critp <= -1)
+if($crit && $critp <= -1) {
+       // The "360 +" fix has been worked out by hipska. Thanks for that!
        imagefilledarc($img,$centerx, $centery, $outerdia, $outerdia, 360 + 
$critp, 0, $oRed, IMG_ARC_EDGED);
+}
 
 // Borders
 imagearc($img, $centerx, $centery+1, $outerdia+2, $outerdia+2, 180, 0, 
$oBlack);
diff --git a/share/userfiles/gadgets/std_speedometer2.php 
b/share/userfiles/gadgets/std_speedometer2.php
index c6293bf..0a9e25c 100644
--- a/share/userfiles/gadgets/std_speedometer2.php
+++ b/share/userfiles/gadgets/std_speedometer2.php
@@ -240,16 +240,20 @@ for ($i=0; $i < $pdc; $i++){
                // Warning
                if($warn && $warnp <= -1) {
                        if ($warn < $crit) {
+                               // The "360 +" fix has been worked out by 
hipska. Thanks for that!
                                imagefilledarc($img, $centerx, $centery, 
$outerdia, $outerdia, 360 + $warnp, 0, $oYellow, IMG_ARC_EDGED);
                        } else {
+                               // The "360 +" fix has been worked out by 
hipska. Thanks for that!
                                imagefilledarc($img, $centerx, $centery, 
$outerdia, $outerdia, 180, 360 + $warnp, $oYellow, IMG_ARC_EDGED);
                        }
                }
                // Critical
                if($crit && $critp <= -1) {
                        if ($warn < $crit) {
+                               // The "360 +" fix has been worked out by 
hipska. Thanks for that!
                                imagefilledarc($img,$centerx, $centery, 
$outerdia, $outerdia, 360 + $critp, 0, $oRed, IMG_ARC_EDGED);
                        } else
+                               // The "360 +" fix has been worked out by 
hipska. Thanks for that!
                                imagefilledarc($img,$centerx, $centery, 
$outerdia, $outerdia, 180, 360 + $critp, $oRed, IMG_ARC_EDGED);
                        }
                }


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to