Convert SimianMaptile refresh time from ms to seconds. Too many 0's
in the config file.0.7.1-dev
parent
cf24069227
commit
7a6e1fa4cf
|
@ -87,10 +87,11 @@ namespace OpenSim.Region.OptionalModules.Simian
|
|||
if (String.IsNullOrEmpty(m_serverUrl))
|
||||
return;
|
||||
|
||||
m_refreshtime = Convert.ToInt32(config.GetString("RefreshTime"));
|
||||
if (m_refreshtime <= 0)
|
||||
int refreshseconds = Convert.ToInt32(config.GetString("RefreshTime"));
|
||||
if (refreshseconds <= 0)
|
||||
return;
|
||||
|
||||
m_refreshtime = refreshseconds * 1000; // convert from seconds to ms
|
||||
m_log.InfoFormat("[SIMIAN MAPTILE] enabled with refresh timeout {0} and URL {1}",
|
||||
m_refreshtime,m_serverUrl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue