WoW API: GetNetStats
Jump to navigation
Jump to search
← 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.