WoW:API GetNetStats: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(more precise) |
||
Line 4: | Line 4: | ||
down, up, lag = GetNetStats(); | down, up, lag = GetNetStats(); | ||
---- | ---- | ||
;''Returns'' | ;''Returns'' | ||
:;down : Current incomming bandwidth (download) usage, measured in KB/s. | |||
:;down : | |||
:( | :;up : Current outgoing bandwidth (upload) usage, measured in KB/s. | ||
:;lag : | :;lag : Floating Point Number - Average roundtrip latency to the server (only updated every 30 seconds). | ||
---- | ---- | ||
;''Example'' | ;''Example'' |
Revision as of 15:22, 27 February 2010
← 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.