recover the UnAckedBytes are in KB fix

0.9.1.0-post-fixes
UbitUmarov 2019-03-19 10:59:01 +00:00
parent 7884278097
commit c521ff394e
1 changed files with 2 additions and 1 deletions

View File

@ -5457,7 +5457,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
data[26] = (byte)stats.StatsBlock.Length; data[26] = (byte)stats.StatsBlock.Length;
int pos = 27; int pos = 27;
for(int i = 0; i< stats.StatsBlock.Length; ++i) stats.StatsBlock[15].StatValue /= 1024; // unack is in KB
for (int i = 0; i< stats.StatsBlock.Length; ++i)
{ {
Utils.UIntToBytesSafepos(stats.StatsBlock[i].StatID, data, pos); pos += 4; Utils.UIntToBytesSafepos(stats.StatsBlock[i].StatID, data, pos); pos += 4;
Utils.FloatToBytesSafepos(stats.StatsBlock[i].StatValue, data, pos); pos += 4; Utils.FloatToBytesSafepos(stats.StatsBlock[i].StatValue, data, pos); pos += 4;