FANDOM


 
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, March 4, 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

Community content is available under CC-BY-SA unless otherwise noted.