diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-05-04 15:42:45 +0000 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-04 18:13:35 +0200 |
commit | 40d4279b316e9d8b6636dd518cddec65b78c05aa (patch) | |
tree | d10d4bdd529870835bc85f64d3309eef79cd98c6 /src/rest.c | |
parent | a7cce8d442a2c83562483ff3e649c95e6e732ea9 (diff) |
#995 Add link speed parsing to client probe response
If a probe response contains speedinformation, parse and store
it inside the client struct. Speed is interpreted as an unsigned
integer representing Mbit/s.
Diffstat (limited to 'src/rest.c')
-rw-r--r-- | src/rest.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -389,6 +389,7 @@ static int og_json_client_append(json_t *array, struct og_client *client) return -1; } json_object_set_new(object, "state", state); + json_object_set_new(object, "speed", json_integer(client->speed)); json_array_append_new(array, object); return 0; |