aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Asset
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Asset')
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index d1cb5e8..b42759d 100644..100755
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -1075,14 +1075,14 @@ namespace OpenSim.Region.CoreModules.Asset
1075 { 1075 {
1076 case "status": 1076 case "status":
1077 if (m_MemoryCacheEnabled) 1077 if (m_MemoryCacheEnabled)
1078 con.OutputFormat("Memory Cache: {0} assets", m_MemoryCache.Count); 1078 con.Output("Memory Cache: {0} assets", null, m_MemoryCache.Count);
1079 else 1079 else
1080 con.OutputFormat("Memory cache disabled"); 1080 con.Output("Memory cache disabled");
1081 1081
1082 if (m_FileCacheEnabled) 1082 if (m_FileCacheEnabled)
1083 { 1083 {
1084 int fileCount = GetFileCacheCount(m_CacheDirectory); 1084 int fileCount = GetFileCacheCount(m_CacheDirectory);
1085 con.OutputFormat("File Cache: {0} assets", fileCount); 1085 con.Output("File Cache: {0} assets", null, fileCount);
1086 } 1086 }
1087 else 1087 else
1088 { 1088 {
@@ -1099,7 +1099,7 @@ namespace OpenSim.Region.CoreModules.Asset
1099 { 1099 {
1100 string RegionID = s.Remove(0,s.IndexOf("_")).Replace(".fac",""); 1100 string RegionID = s.Remove(0,s.IndexOf("_")).Replace(".fac","");
1101 DateTime RegionDeepScanTMStamp = File.GetLastWriteTime(s); 1101 DateTime RegionDeepScanTMStamp = File.GetLastWriteTime(s);
1102 con.OutputFormat("Region: {0}, {1}", RegionID, RegionDeepScanTMStamp.ToString("MM/dd/yyyy hh:mm:ss")); 1102 con.Output("Region: {0}, {1}", null, RegionID, RegionDeepScanTMStamp.ToString("MM/dd/yyyy hh:mm:ss"));
1103 } 1103 }
1104 } 1104 }
1105 1105
@@ -1160,7 +1160,7 @@ namespace OpenSim.Region.CoreModules.Asset
1160 { 1160 {
1161 if(m_cleanupRunning) 1161 if(m_cleanupRunning)
1162 { 1162 {
1163 con.OutputFormat("Flotsam assets check already running"); 1163 con.Output("Flotsam assets check already running");
1164 return; 1164 return;
1165 } 1165 }
1166 m_cleanupRunning = true; 1166 m_cleanupRunning = true;
@@ -1192,7 +1192,7 @@ namespace OpenSim.Region.CoreModules.Asset
1192 } 1192 }
1193 m_cleanupRunning = false; 1193 m_cleanupRunning = false;
1194 } 1194 }
1195 con.OutputFormat("Completed check with {0} assets.", assetReferenceTotal); 1195 con.Output("Completed check with {0} assets.", null, assetReferenceTotal);
1196 }, null, "TouchAllSceneAssets", false); 1196 }, null, "TouchAllSceneAssets", false);
1197 1197
1198 break; 1198 break;
@@ -1200,7 +1200,7 @@ namespace OpenSim.Region.CoreModules.Asset
1200 case "expire": 1200 case "expire":
1201 if (cmdparams.Length < 3) 1201 if (cmdparams.Length < 3)
1202 { 1202 {
1203 con.OutputFormat("Invalid parameters for Expire, please specify a valid date & time", cmd); 1203 con.Output("Invalid parameters for Expire, please specify a valid date & time");
1204 break; 1204 break;
1205 } 1205 }
1206 1206
@@ -1218,18 +1218,18 @@ namespace OpenSim.Region.CoreModules.Asset
1218 1218
1219 if (!DateTime.TryParse(s_expirationDate, out expirationDate)) 1219 if (!DateTime.TryParse(s_expirationDate, out expirationDate))
1220 { 1220 {
1221 con.OutputFormat("{0} is not a valid date & time", cmd); 1221 con.Output("{0} is not a valid date & time", null, cmd);
1222 break; 1222 break;
1223 } 1223 }
1224 1224
1225 if (m_FileCacheEnabled) 1225 if (m_FileCacheEnabled)
1226 CleanExpiredFiles(m_CacheDirectory, expirationDate); 1226 CleanExpiredFiles(m_CacheDirectory, expirationDate);
1227 else 1227 else
1228 con.OutputFormat("File cache not active, not clearing."); 1228 con.Output("File cache not active, not clearing.");
1229 1229
1230 break; 1230 break;
1231 default: 1231 default:
1232 con.OutputFormat("Unknown command {0}", cmd); 1232 con.Output("Unknown command {0}", null, cmd);
1233 break; 1233 break;
1234 } 1234 }
1235 } 1235 }