- Documentation
- Server functions
- getNetworkUsageData
Function
getNetworkUsageData
Returns how much data the server has received and sent over the network since it started.
Syntax
table getNetworkUsageData()Returns
{ in_ = {bytes, packets}, out = {bytes, packets} }, or false.
Example
local usage = getNetworkUsageData()
if usage then outputServerLog(("Wyslano %d KB"):format(usage.out.bytes / 1024)) end
See also
getNetworkStatsReturns network statistics for the server or one player: bytes and packets sent and received. The packet loss and buffer fields are zeros for now.getPerformanceStatsReturns basic server statistics as columns and rows (uptime, players, vehicles, objects, timers, resources, number of API functions). The category, options and filter arguments are accepted, but the data set is always the same.