r1718 - trunk/varnish-cache/bin/varnishstat

des at projects.linpro.no des at projects.linpro.no
Thu Jul 19 13:03:55 CEST 2007


Author: des
Date: 2007-07-19 13:03:55 +0200 (Thu, 19 Jul 2007)
New Revision: 1718

Modified:
   trunk/varnish-cache/bin/varnishstat/varnishstat.c
Log:
Missed one occurrence of clock_gettime().


Modified: trunk/varnish-cache/bin/varnishstat/varnishstat.c
===================================================================
--- trunk/varnish-cache/bin/varnishstat/varnishstat.c	2007-07-19 11:02:57 UTC (rev 1717)
+++ trunk/varnish-cache/bin/varnishstat/varnishstat.c	2007-07-19 11:03:55 UTC (rev 1718)
@@ -158,11 +158,11 @@
 static void
 do_once(struct varnish_stats *VSL_stats)
 {
-	struct timespec ts;
+	struct timeval tv;
 	double up;
 
-	clock_gettime(CLOCK_REALTIME, &ts);
-	up = ts.tv_sec - VSL_stats->start_time;
+	gettimeofday(&tv, NULL);
+	up = tv.tv_sec - VSL_stats->start_time;
 
 #define MAC_STAT(n, t, f, d) \
 	do { \




More information about the varnish-commit mailing list