Module: nagvis
Branch: master
Commit: ebb89e2ecb31f6dfd5c42335693e1bd79c03f6cc
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=ebb89e2ecb31f6dfd5c42335693e1bd79c03f6cc

Author: Roman Kyrylych <[email protected]>
Date:   Tue Aug 11 18:27:08 2009 +0300

gmap: Fixed wrong parameters for get{Host,Service}GroupState()

Signed-off-by: Roman Kyrylych <[email protected]>

---

 share/netmap/Database.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/netmap/Database.php b/share/netmap/Database.php
index 9c3f7fc..bcac3bc 100644
--- a/share/netmap/Database.php
+++ b/share/netmap/Database.php
@@ -182,7 +182,7 @@ class Database
                $state = Location::STATE_UNKNOWN;
 
                foreach ($hosts as $host)
-                       $state = max($state, $this->getHostState($host));
+                       $state = max($state, $this->getHostState(new 
Host($host)));
 
                return $state;
        }
@@ -196,7 +196,7 @@ class Database
                $state = Location::STATE_UNKNOWN;
 
                foreach ($services as $service)
-                       $state = max($state, 
$this->getServiceState($service['host_name'], $service['service_description']));
+                       $state = max($state, $this->getServiceState(new 
Service($service['host_name'], $service['service_description'])));
 
                return $state;
        }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to