minor: in "show server throttles", display unset if new client throttle value is not set rather than 0

mb-throttle-test
Justin Clark-Casey (justincc) 2014-10-08 00:31:35 +01:00
parent 44e0a2f906
commit a13022c296
1 changed files with 6 additions and 2 deletions

View File

@ -181,12 +181,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_console.OutputFormat("Throttles for {0}", m_udpServer.Scene.Name); m_console.OutputFormat("Throttles for {0}", m_udpServer.Scene.Name);
ConsoleDisplayList cdl = new ConsoleDisplayList(); ConsoleDisplayList cdl = new ConsoleDisplayList();
cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled); cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled);
long maxSceneDripRate = m_udpServer.MaxTotalDripRate;
cdl.AddRow( cdl.AddRow(
"Max scene throttle", "Max scene throttle",
m_udpServer.MaxTotalDripRate != 0 ? string.Format("{0} kbps", m_udpServer.MaxTotalDripRate * 8 / 1000) : "unset"); maxSceneDripRate != 0 ? string.Format("{0} kbps", maxSceneDripRate * 8 / 1000) : "unset");
int maxClientDripRate = m_udpServer.ThrottleRates.Total;
cdl.AddRow( cdl.AddRow(
"Max new client throttle", "Max new client throttle",
string.Format("{0} kbps", m_udpServer.ThrottleRates.Total * 8 / 1000)); maxClientDripRate != 0 ? string.Format("{0} kbps", maxClientDripRate * 8 / 1000) : "unset");
m_console.Output(cdl.ToString()); m_console.Output(cdl.ToString());