projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb: Change the way connection duration time is reported in Manager table.
[openvswitch]
/
ovsdb
/
ovsdb-server.c
diff --git
a/ovsdb/ovsdb-server.c
b/ovsdb/ovsdb-server.c
index fac78c80785c02472bd8a5e38dc425a6fe621ca5..9eb58ebf1fd758826fc98a67156912681a88e5cb 100644
(file)
--- a/
ovsdb/ovsdb-server.c
+++ b/
ovsdb/ovsdb-server.c
@@
-495,8
+495,9
@@
update_remote_row(const struct ovsdb_row *row, struct ovsdb_txn *txn,
keys[n] = xstrdup("state");
values[n++] = xstrdup(status->state);
keys[n] = xstrdup("state");
values[n++] = xstrdup(status->state);
- keys[n] = xstrdup("time_in_state");
- values[n++] = xasprintf("%u", status->state_elapsed);
+ keys[n] = xstrdup(status->is_connected ? "time_connected"
+ : "time_disconnected");
+ values[n++] = xasprintf("%u", status->conn_secs);
if (status->last_error) {
keys[n] = xstrdup("last_error");
values[n++] =
if (status->last_error) {
keys[n] = xstrdup("last_error");
values[n++] =