diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-02-17 12:58:22 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-03-01 16:46:40 +0000 |
commit | 54c149f996190e9302d1e7d7120d462e4b80e69b (patch) | |
tree | 40f7e7fb3abd3a395e5a01854be6bb8a538ea600 | |
parent | effb76e25815c1263c14c3c4358ee6ccce39f60b (diff) |
Include configured maximum incoming bytes in per-connection statssimpler-memory
In practice this is global in dbus-daemon, but in principle it could
differ per-connection.
-rw-r--r-- | bus/stats.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bus/stats.c b/bus/stats.c index 6d0a3bad..832e7d6c 100644 --- a/bus/stats.c +++ b/bus/stats.c @@ -318,6 +318,12 @@ bus_stats_handle_get_connection_stats (DBusConnection *caller_connection, /* DBusConnection per-connection stats */ + if (!asv_add_uint32 (&iter, &arr_iter, "ConfiguredMaxIncomingBytes", + dbus_connection_get_max_received_size (stats_connection)) || + !asv_add_uint32 (&iter, &arr_iter, "ConfiguredMaxIncomingFDs", + dbus_connection_get_max_received_unix_fds (stats_connection))) + goto oom; + _dbus_connection_get_stats (stats_connection, &in_messages, &in_bytes, &in_fds, &in_peak_bytes, &in_peak_fds, |