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

Author: Lars Michelsen <[email protected]>
Date:   Wed May  5 00:05:39 2010 +0200

Removed additional calls to getter methods in hot places to reduce cpu cycles

---

 share/server/core/classes/objects/NagiosHost.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/server/core/classes/objects/NagiosHost.php 
b/share/server/core/classes/objects/NagiosHost.php
index 6f9f4e7..7fd7ac9 100644
--- a/share/server/core/classes/objects/NagiosHost.php
+++ b/share/server/core/classes/objects/NagiosHost.php
@@ -562,7 +562,7 @@ class NagiosHost extends NagVisStatefulObject {
                
                // Only merge host state with service state when 
recognize_services is set 
                // to 1
-               if($this->getRecognizeServices()) {
+               if($this->recognize_services) {
                        // Get states of services and merge with host state
                        foreach($this->getMembers() AS $SERVICE) {
                                $this->wrapChildState($SERVICE);
@@ -611,7 +611,7 @@ class NagiosHost extends NagVisStatefulObject {
                
                // Only merge host state with service state when 
recognize_services is set 
                // to 1
-               if($this->getRecognizeServices()) {
+               if($this->recognize_services) {
                        $iNumServices = 0;
                        $arrServiceStates = Array();
                        
@@ -657,7 +657,7 @@ class NagiosHost extends NagVisStatefulObject {
                
                // Only merge host state with service state when 
recognize_services is set 
                // to 1
-               if($this->getRecognizeServices()) {
+               if($this->recognize_services) {
                        // If there are services write the summary state for 
them
                        if($this->hasMembers()) {
                                $arrStates = Array('CRITICAL' => 0,'DOWN' => 
0,'WARNING' => 0,'UNKNOWN' => 0,'UP' => 0,'OK' => 0,'ERROR' => 0,'ACK' => 
0,'PENDING' => 0);


------------------------------------------------------------------------------
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to