mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Fix recent regression in "debug lludp throttles get" command that stopped it printing any information. Also fix max throttle displayed to be properly kbps
This commit is contained in:
@@ -419,7 +419,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||||||
{
|
{
|
||||||
if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
|
if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
|
||||||
{
|
{
|
||||||
MainConsole.Instance.OutputFormat(
|
m_console.OutputFormat(
|
||||||
"Status for {0} ({1}) in {2}",
|
"Status for {0} ({1}) in {2}",
|
||||||
sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
|
sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
|
||||||
|
|
||||||
@@ -427,7 +427,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||||||
|
|
||||||
ConsoleDisplayList cdl = new ConsoleDisplayList();
|
ConsoleDisplayList cdl = new ConsoleDisplayList();
|
||||||
cdl.AddRow("Adaptive throttle", udpClient.FlowThrottle.Enabled);
|
cdl.AddRow("Adaptive throttle", udpClient.FlowThrottle.Enabled);
|
||||||
cdl.AddRow("Max throttle", string.Format("{0} kbps", udpClient.FlowThrottle.RequestedDripRate / 8 * 1000));
|
cdl.AddRow("Max throttle", string.Format("{0} kbps", udpClient.FlowThrottle.RequestedDripRate * 8 / 1000));
|
||||||
|
|
||||||
|
m_console.Output(cdl.ToString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user