aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Is sessionReceivedBytes wrong?  (Read 2733 times)

netbsd8

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 23
Is sessionReceivedBytes wrong?
« 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!

Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Is sessionReceivedBytes wrong?
« Reply #1 on: January 19, 2010, 08:41:28 PM »

compression
Logged
concordia cum veritate

netbsd8

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 23
Re: Is sessionReceivedBytes wrong?
« Reply #2 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
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Is sessionReceivedBytes wrong?
« Reply #3 on: January 19, 2010, 11:18:23 PM »

Or a different amount of compression.
Logged