From f325ef59020b0acc33b6d05e96c8df7b58373715 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 27 Mar 2020 16:24:48 +0100 Subject: api,bearer: add 'attempts' and 'failed-attempts' statistics When we're reusing over and over the same bearer object, we can provide statistical information about the number of connection attempts that have been done and how many of them failed. --- cli/mmcli-output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/mmcli-output.c') diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c index 25877b0b..7418fc18 100644 --- a/cli/mmcli-output.c +++ b/cli/mmcli-output.c @@ -226,6 +226,8 @@ static FieldInfo field_infos[] = { [MMC_F_BEARER_STATS_DURATION] = { "bearer.stats.duration", "duration", MMC_S_BEARER_STATS, }, [MMC_F_BEARER_STATS_BYTES_RX] = { "bearer.stats.bytes-rx", "bytes rx", MMC_S_BEARER_STATS, }, [MMC_F_BEARER_STATS_BYTES_TX] = { "bearer.stats.bytes-tx", "bytes tx", MMC_S_BEARER_STATS, }, + [MMC_F_BEARER_STATS_ATTEMPTS] = { "bearer.stats.attempts", "attempts", MMC_S_BEARER_STATS, }, + [MMC_F_BEARER_STATS_FAILED_ATTEMPTS] = { "bearer.stats.failed-attempts", "attempts", MMC_S_BEARER_STATS, }, [MMC_F_CALL_GENERAL_DBUS_PATH] = { "call.dbus-path", "dbus path", MMC_S_CALL_GENERAL, }, [MMC_F_CALL_PROPERTIES_NUMBER] = { "call.properties.number", "number", MMC_S_CALL_PROPERTIES, }, [MMC_F_CALL_PROPERTIES_DIRECTION] = { "call.properties.direction", "direction", MMC_S_CALL_PROPERTIES, }, -- cgit v1.2.3-70-g09d2