[Saga-devel] saga SVN commit 3314: /trunk/saga/saga/adaptors/utils/
amerzky at cct.lsu.edu
amerzky at cct.lsu.edu
Sat Jan 17 05:51:21 CST 2009
User: amerzky
Date: 2009/01/17 05:51 AM
Modified:
/trunk/saga/saga/adaptors/utils/
utils.cpp
Log:
fix
A
File Changes:
Directory: /trunk/saga/saga/adaptors/utils/
===========================================
File [modified]: utils.cpp
Delta lines: +6 -7
===================================================================
--- trunk/saga/saga/adaptors/utils/utils.cpp 2009-01-17 11:38:32 UTC (rev 3313)
+++ trunk/saga/saga/adaptors/utils/utils.cpp 2009-01-17 11:51:13 UTC (rev 3314)
@@ -142,16 +142,15 @@
bool host_is_localhost (std::string host)
{
- if ( host == "" )
+ std::vector <std::strings> localhosts = get_localhosts ();
+ for ( int i = 0; i < localhosts.size (); i++ )
{
- host = "localhost";
+ if ( host == localhosts[i] )
+ {
+ return true;
+ }
}
- if ( host == saga::adaptors::utils::get_localhost () )
- {
- return true;
- }
-
return false;
}
More information about the saga-devel
mailing list