aMule Forum

English => en_Bugs => Topic started by: netbsd8 on January 19, 2010, 06:49:04 PM

Title: Is sessionReceivedBytes wrong?
Post by: netbsd8 on January 19, 2010, 06:49:04 PM
Hello,

I record the SessionReceivedBytes into a file when calling amule->OnFinishedCompletion():
========================
        FILE* stream;
   stream = fopen("rates.txt","w");
   
        fprintf(stream,"%s:%llu Bytes\n","SessionReceiveBytes",theStats::GetSessionReceivedBytes());
        fprintf(stream,"%s:%llu Bytes\n","SessionSentBytes",theStats::GetSessionSentBytes());
        fprintf(stream,"%s:%llu Seconds\n","Uptime",theStats::GetUptimeSeconds());
   
        fclose(stream);
=========================
however, when I download a file whose size is 3141365 bytes, the GetSessionReceivedBytes() function only returns 2639658 bytes.
Is something missed?

Thanks in advance!

Title: Re: Is sessionReceivedBytes wrong?
Post by: GonoszTopi on January 19, 2010, 08:41:28 PM
compression
Title: Re: Is sessionReceivedBytes wrong?
Post by: netbsd8 on January 19, 2010, 09:56:23 PM
Download again, and get 2920991 bytes this time.
Does the difference of two tests come from the communication messages?

Thanks.

compression
Title: Re: Is sessionReceivedBytes wrong?
Post by: Kry on January 19, 2010, 11:18:23 PM
Or a different amount of compression.