CustomBar: Plugin Reference
SystemInfo.DownloadRate
Measures the download rate for specified network interface. Does not measure traffic that doesn't go through a network connection (ie. won't measure dial-up).
SystemInfo.DownloadRate( string Unit, integer Precision = 0, string Machine = "", string NetworkInterface = "" )
Parameters
Unit
Unit to return information in. Can be one of the following:
B - Bytes
KB - Kilobytes
MB - Megabytes
GB - Gigabytes
Precision
Amount of numbers following decimal point to retrieve.
Machine
Name of machine to query. If not specified, local machine is automatically detected.
NetworkInterface
Network interface to query. This is an advanced value that should generally not be specified, but can be if you wish to query a particular network interface. To find valid values, you need to look for them on your machine's performance counters. Advanced users only.
Return Value (string)
Download rate in requested unit and precision. Can return "0" if network interface not found or this is not an NT-based system.