updated docs
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
results / sec. values (rx_sec, IOPS, ...) are calculated correctly beginning with the <strong>second</strong> call of the function.
|
||||
It is determined by calculating the difference of transferred bytes / IOs divided by the time between two calls of the function.</p>
|
||||
|
||||
<p>The first time you are calling one of this functions, you will get <span class="code">-1</span> for transfer rates.
|
||||
<p>The first time you are calling one of this functions, you will get <span class="code">null</span> for transfer rates.
|
||||
The second time, you should then get statistics based on the time between the two calls ...</p>
|
||||
|
||||
<p>So basically, if you e.g. need a values for network stats every second, your code should look like this:</p>
|
||||
|
||||
Reference in New Issue
Block a user