diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-16 15:55:04 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-17 16:08:21 +0200 |
commit | e1f8ceb0f00abd9909e3be77035caa6188347843 (patch) | |
tree | 2f6f87a0b261d9343e7f3dcc1eef16d423eafa9f /introspection | |
parent | b295c586bc17d6a9fe600516608dbe9e508b6843 (diff) |
device: always expose device statistics information
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.
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/nm-device-statistics.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/introspection/nm-device-statistics.xml b/introspection/nm-device-statistics.xml index 5d23bf306..bdb19c89c 100644 --- a/introspection/nm-device-statistics.xml +++ b/introspection/nm-device-statistics.xml @@ -5,10 +5,10 @@ <!-- RefreshRateMs: - Rate of change of the rest of properties of this interface. If zero, the - properties do not change. Otherwise, the properties are refreshed each - RefreshRateMs milliseconds in case the underlying counter has changed - too. + 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"/> |