From: des Date: Thu, 19 Jul 2007 11:03:55 +0000 (+0000) Subject: Missed one occurrence of clock_gettime(). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a851d81c68dc0fad45613bbfa135ac372fb6e9a;p=varnish Missed one occurrence of clock_gettime(). git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1718 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishstat/varnishstat.c b/varnish-cache/bin/varnishstat/varnishstat.c index 06b895c8..14b8d59c 100644 --- a/varnish-cache/bin/varnishstat/varnishstat.c +++ b/varnish-cache/bin/varnishstat/varnishstat.c @@ -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 { \