Convert SimianMaptile refresh time from ms to seconds. Too many 0's

in the config file.
0.7.1-dev
Mic Bowman 2011-02-04 14:21:18 -08:00
parent cf24069227
commit 7a6e1fa4cf
1 changed files with 12 additions and 11 deletions

View File

@ -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);