Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
 
No edit summary
Line 1: Line 1:
  +
<center>'''GetNetStats''' ''-Documentation by Myrrion (thanks Jooky)-''</center>
Returns three statistics: down, up, lag<br>
 
  +
- lag is returned in milliseconds<br>
 
  +
Retrieve info about net statistics.
<br>
 
  +
Example Script:<br>
 
local down, up, lag = GetNetStats();<br>
+
down, up, lag = GetNetStats();
  +
message("Lag: "..lag.." milliseconds.");<br>
 
  +
----
<br>
 
  +
;''Arguments''
Result: Message box with lag in milliseconds<br>
 
  +
<br>
 
  +
:none
-Myrrion<br>
 
  +
(thanks to Jooky)
 
  +
----
  +
;''Returns''
  +
  +
:(- down)
  +
  +
:;down : -
  +
  +
:(- up)
  +
  +
:;up : -
  +
  +
:(Number lag)
  +
  +
:;lag : The lag (in milliseconds) of your connection.
  +
----
  +
;''Example''
  +
local down, up, lag = GetNetStats();
  +
  +
;''Result''
  +
  +
For lag variable, retrieves the amount of lag in milliseconds.
  +
  +
----
  +
;''Description''
  +
  +
: Retrieve information about your current net statistics.
  +
  +
----
  +
{{Template:WoW API}}

Revision as of 07:20, 4 March 2005

GetNetStats -Documentation by Myrrion (thanks Jooky)-

Retrieve info about net statistics.

down, up, lag = GetNetStats();


Arguments
none

Returns
(- down)
down
-
(- up)
up
-
(Number lag)
lag
The lag (in milliseconds) of your connection.

Example
local down, up, lag = GetNetStats();
Result

For lag variable, retrieves the amount of lag in milliseconds.


Description
Retrieve information about your current net statistics.

Template:WoW API