aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Base
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-11-22 04:05:09 +0000
committerJustin Clark-Casey (justincc)2012-11-22 04:05:09 +0000
commit5c48d7a378ff066f59b9cee02f2803ebe1616481 (patch)
tree82af06819d5bb9d184890b5395e831b4e47c91d7 /OpenSim/Server/Base
parentrefactor: Factor out copy/pasted server uptime report code (diff)
downloadopensim-SC_OLD-5c48d7a378ff066f59b9cee02f2803ebe1616481.zip
opensim-SC_OLD-5c48d7a378ff066f59b9cee02f2803ebe1616481.tar.gz
opensim-SC_OLD-5c48d7a378ff066f59b9cee02f2803ebe1616481.tar.bz2
opensim-SC_OLD-5c48d7a378ff066f59b9cee02f2803ebe1616481.tar.xz
factor out common HandleShow code for "show uptime"
Diffstat (limited to 'OpenSim/Server/Base')
-rw-r--r--OpenSim/Server/Base/ServicesServerBase.cs18
1 files changed, 2 insertions, 16 deletions
diff --git a/OpenSim/Server/Base/ServicesServerBase.cs b/OpenSim/Server/Base/ServicesServerBase.cs
index 56bb7ae..7b49ac9 100644
--- a/OpenSim/Server/Base/ServicesServerBase.cs
+++ b/OpenSim/Server/Base/ServicesServerBase.cs
@@ -174,6 +174,8 @@ namespace OpenSim.Server.Base
174 MainConsole.Instance = new LocalConsole(prompt); 174 MainConsole.Instance = new LocalConsole(prompt);
175 } 175 }
176 176
177 m_console = MainConsole.Instance;
178
177 // Configure the appenders for log4net 179 // Configure the appenders for log4net
178 // 180 //
179 OpenSimAppender consoleAppender = null; 181 OpenSimAppender consoleAppender = null;
@@ -351,21 +353,5 @@ namespace OpenSim.Server.Base
351 { 353 {
352 } 354 }
353 } 355 }
354
355 public virtual void HandleShow(string module, string[] cmd)
356 {
357 List<string> args = new List<string>(cmd);
358
359 args.RemoveAt(0);
360
361 string[] showParams = args.ToArray();
362
363 switch (showParams[0])
364 {
365 case "uptime":
366 MainConsole.Instance.Output(GetUptimeReport());
367 break;
368 }
369 }
370 } 356 }
371} \ No newline at end of file 357} \ No newline at end of file