From 9a851d81c68dc0fad45613bbfa135ac372fb6e9a Mon Sep 17 00:00:00 2001 From: des Date: Thu, 19 Jul 2007 11:03:55 +0000 Subject: [PATCH] Missed one occurrence of clock_gettime(). git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1718 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishstat/varnishstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 { \ -- 2.39.5