🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5356

RasGetLinkStatistics

#5356
From: ScOe
Date: Mon, 05 Sep 2005 22:08
18 lines
1403 bytes
If you call RasGetLinkStatistics function, RAS_STATS dwBytesXmited variable
gets number of
bytes that is received untill now ...
That number is not the same number i get from DSL provider. My number is
bigger for ~1%.
Anyone have idea how do they round up that number ?
I'm using this:
RAS_STATS stat;
...
double number = float (stat.dwBytesXmited)/float (1024);

i dont know why did i use float to double combination ... :)

for example:
-DSL counter:
    885504,00
-my counter
    887271.188
Technical Details
Message-ID: <431cc179$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1d228b2ac6ee60f2,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "ScOe" <cbinders@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: RasGetLinkStatistics
Date: Tue, 6 Sep 2005 00:08:03 +0200
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 83.131.70.91
Message-ID: <431cc179$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125958009 83.131.70.91 (5 Sep 2005 15:06:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail