Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/tcptable.c | 7 ++-----
src/tcptable.h | 1 -
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/tcptable.c b/src/tcptable.c
index 9f29c5b..29ef748 100644
--- a/src/tcptable.c
+++ b/src/tcptable.c
@@ -388,13 +388,10 @@ struct tcptableent *addentry(struct tcptable *table,
* Mark flow rate start time and byte counter for flow computation
* if the highlight bar is on either flow of the new connection.
*/
- if (table->barptr == new_entry) {
- new_entry->starttime = time(NULL);
+ if (table->barptr == new_entry)
new_entry->spanbr = 0;
- } else if (table->barptr == new_entry->oth_connection) {
- new_entry->oth_connection->starttime = time(NULL);
+ else if (table->barptr == new_entry->oth_connection)
new_entry->oth_connection->spanbr = 0;
- }
/*
* Add entries to hash table
diff --git a/src/tcptable.h b/src/tcptable.h
index f50882b..9fe0063 100644
--- a/src/tcptable.h
+++ b/src/tcptable.h
@@ -59,7 +59,6 @@ struct tcptableent {
unsigned long spanbr;
struct rate rate;
time_t lastupdate;
- time_t starttime;
time_t conn_starttime;
struct tcp_hashentry *hash_node;
struct tcptableent *oth_connection; /* the other half of the connection */
--
1.8.4