RasGetLinkStatistics


2005-09-06 06:08:03 AM
cppbuilder7
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