mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
factor out common HandleShow code for "show uptime"
This commit is contained in:
@@ -174,6 +174,8 @@ namespace OpenSim.Server.Base
|
||||
MainConsole.Instance = new LocalConsole(prompt);
|
||||
}
|
||||
|
||||
m_console = MainConsole.Instance;
|
||||
|
||||
// Configure the appenders for log4net
|
||||
//
|
||||
OpenSimAppender consoleAppender = null;
|
||||
@@ -351,21 +353,5 @@ namespace OpenSim.Server.Base
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void HandleShow(string module, string[] cmd)
|
||||
{
|
||||
List<string> args = new List<string>(cmd);
|
||||
|
||||
args.RemoveAt(0);
|
||||
|
||||
string[] showParams = args.ToArray();
|
||||
|
||||
switch (showParams[0])
|
||||
{
|
||||
case "uptime":
|
||||
MainConsole.Instance.Output(GetUptimeReport());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user