I try to check FCS application traffic statistic using Application.getStats().
But seem not get the real statistic. //main.asc var intervalTime = 60; var
lastStatistic = {bytes_in:null,bytes_out:null}; function getTraffic(){
stats = application.getStats(); currentStatistic = {};
if(lastStatistic.bytes_in == null){ currentStatistic.bytes_in =
stats.bytes_in; } else { currentStatistic.bytes_in =
stats.bytes_in-lastStatistic.bytes_in; } if(lastStatistic.bytes_out
== null){ currentStatistic.bytes_out = stats.bytes_out; } else
{ currentStatistic.bytes_out =
stats.bytes_out-lastStatistic.bytes_out; } lastStatistic =
stats; trace('Bytes received : ' +
(currentStatistic.bytes_in/(1024*intervalTime) + ' Kb/s'); trace('Bytes
send : ' + (currentStatistic.bytes_out/(1024*intervalTime) + ' Kb/s'); }
application.onAppStart = function(){ setInterval(getTraffic,
intervalTime*1000); // check Time each 60 seconds } But when compared with
statistics on client using ConnectionLight Component, it seem NOT right. I know
ConnectionLight Component is about client statistics but I think there is some
comparation between Server and client traffic statistic. After I open script
on ConnectionLight Component a found this part : var upval =
this.formatRate(up*8000); var dnval = this.formatRate(down*8000); On
FCConnectionLightClass.prototype.update() class Then the next question is why
the variable (up and down) always times with 8000? Should I also did on my
script above?:confused;