mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 17:00:08 +01:00
Instead of updating the device-statistic counters only periodically as we refresh the link, update them on every link-changed event from platform. That means, also for devices that have RefreshRateMs at zero, the values will be updated at random times when the link information changes. The difference is, that previously the counters would be zero unless RefreshRateMs was set. Now, they have some (probably stale) values which however are not guaranteed to be kept up-to-date. Also, now we refresh more often then promised by RefreshRateMs. But the API technically doesn't specify that, so if we find there is a problem with this, we may revert it later.
37 lines
1,008 B
XML
37 lines
1,008 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<node name="/">
|
|
<interface name="org.freedesktop.NetworkManager.Device.Statistics">
|
|
|
|
<!--
|
|
RefreshRateMs:
|
|
|
|
Refresh rate of the rest of properties of this interface. The properties
|
|
are guaranteed to be refreshed each RefreshRateMs milliseconds in case
|
|
the underlying counter has changed too.
|
|
If zero, there is no guaranteed refresh rate of the properties.
|
|
-->
|
|
<property name="RefreshRateMs" type="u" access="readwrite"/>
|
|
|
|
<!--
|
|
TxBytes:
|
|
|
|
Number of transmitted bytes
|
|
-->
|
|
<property name="TxBytes" type="t" access="read"/>
|
|
|
|
<!--
|
|
RxBytes:
|
|
|
|
Number of received bytes
|
|
-->
|
|
<property name="RxBytes" type="t" access="read"/>
|
|
|
|
<!--
|
|
PropertiesChanged:
|
|
@properties: A dictionary mapping property names to variant boxed values
|
|
-->
|
|
<signal name="PropertiesChanged">
|
|
<arg name="properties" type="a{sv}"/>
|
|
</signal>
|
|
</interface>
|
|
</node>
|