]> err.no Git - varnish/commitdiff
Missed one occurrence of clock_gettime().
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Jul 2007 11:03:55 +0000 (11:03 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Jul 2007 11:03:55 +0000 (11:03 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1718 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishstat/varnishstat.c

index 06b895c87aa4e2d6fa140675f40b4ddf43885de3..14b8d59cf32ac303c6d6a172b060d8710eadc4db 100644 (file)
@@ -158,11 +158,11 @@ do_curses(struct varnish_stats *VSL_stats, int delay)
 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 { \