INN commit: trunk/nnrpd (article.c)
INN Commit
Russ_Allbery at isc.org
Sun Aug 24 12:30:33 UTC 2008
Date: Sunday, August 24, 2008 @ 05:30:32
Author: iulius
Revision: 7965
Do not do useless time computations.
Modified:
trunk/nnrpd/article.c
-----------+
article.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
Modified: article.c
===================================================================
--- article.c 2008-08-24 11:48:16 UTC (rev 7964)
+++ article.c 2008-08-24 12:30:32 UTC (rev 7965)
@@ -850,8 +850,10 @@
}
}
- OVERcount++;
- gettimeofday(&stv, NULL);
+ if (PERMaccessconf->nnrpdoverstats) {
+ OVERcount++;
+ gettimeofday(&stv, NULL);
+ }
if ((handle = (void *)OVopensearch(GRPcur, range.Low, range.High)) == NULL) {
if (av[1] != NULL)
Reply("%d %s fields follow\r\n.\r\n", NNTP_OK_OVER, av[1]);
@@ -927,14 +929,15 @@
gettimeofday(&stv, NULL);
}
- if (vector)
- cvector_free(vector);
-
if (PERMaccessconf->nnrpdoverstats) {
gettimeofday(&etv, NULL);
OVERtime+=(etv.tv_sec - stv.tv_sec) * 1000;
OVERtime+=(etv.tv_usec - stv.tv_usec) / 1000;
}
+
+ if (vector)
+ cvector_free(vector);
+
if(useIOb) {
SendIOb(".\r\n", 3);
PushIOb();
More information about the inn-committers
mailing list