WoW API: GetNetStats

Revision as of 15:22, 27 February 2010 by WoWWiki>Zwacky (more precise)

WoW API < GetNetStats

Retrieve info about net statistics.

down, up, lag = GetNetStats();


Returns
down
Current incomming bandwidth (download) usage, measured in KB/s.
up
Current outgoing bandwidth (upload) usage, measured in KB/s.
lag
Floating Point Number - Average roundtrip latency to the server (only updated every 30 seconds).

Example
local down, up, lag = GetNetStats();
message("Lag: "..lag.." milliseconds.");
Result

Message box appears with amount of lag in milliseconds.


Description
Retrieve information about your current net statistics.