]> granicus.if.org Git - ngircd/commit
Don't reset My_Connections[Idx].lastping when reading data
authorAlexander Barton <alex@barton.de>
Thu, 19 Aug 2010 13:58:55 +0000 (15:58 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 19 Aug 2010 13:58:55 +0000 (15:58 +0200)
commit04e38f17ae671f84b93e06c6eefa9235dd71d6ce
tree0f49b9ec0d11b1edaf5fa7f15302afbe5d128fda
parent32188d821b24198e4f6b5283fec1060b6700b66b
Don't reset My_Connections[Idx].lastping when reading data

This fixes PING-PONG lag calculation (which resulted in "0" before).

The "lastping" time is still reset it if a time shift backwards has
been detected to prevent the daemon from miscalculating ping timeouts.
src/ngircd/conn.c