Skip to content

Commit

Permalink
rconn: Increase precision of timers.
Browse files Browse the repository at this point in the history
Until now, the rconn timers have been precise only to the nearest second.
This increases them to millisecond precision, which seems cleaner these
days.

Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
blp committed Jul 5, 2019
1 parent d2cb440 commit 393f479
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 89 deletions.
7 changes: 3 additions & 4 deletions include/openvswitch/rconn.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015 Nicira, Inc.
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2019 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,7 +19,6 @@

#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include "openvswitch/types.h"

/* A wrapper around vconn that provides queuing and optionally reliability.
Expand Down Expand Up @@ -88,8 +87,8 @@ int rconn_failure_duration(const struct rconn *);
int rconn_get_version(const struct rconn *);

const char *rconn_get_state(const struct rconn *);
time_t rconn_get_last_connection(const struct rconn *);
time_t rconn_get_last_disconnect(const struct rconn *);
long long int rconn_get_last_connection(const struct rconn *);
long long int rconn_get_last_disconnect(const struct rconn *);
unsigned int rconn_get_connection_seqno(const struct rconn *);
int rconn_get_last_error(const struct rconn *);
unsigned int rconn_count_txqlen(const struct rconn *);
Expand Down
Loading

0 comments on commit 393f479

Please sign in to comment.