[svn] commit: r278 - /branches/f2f200910/src/bin/parkinglot/ccsession.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Sat Oct 31 04:11:33 UTC 2009
Author: each
Date: Sat Oct 31 04:11:33 2009
New Revision: 278
Log:
#include <sys/time.h> for gettimeofday()
Modified:
branches/f2f200910/src/bin/parkinglot/ccsession.cc
Modified: branches/f2f200910/src/bin/parkinglot/ccsession.cc
==============================================================================
--- branches/f2f200910/src/bin/parkinglot/ccsession.cc (original)
+++ branches/f2f200910/src/bin/parkinglot/ccsession.cc Sat Oct 31 04:11:33 2009
@@ -17,6 +17,7 @@
#include <stdexcept>
#include <stdlib.h>
#include <string.h>
+#include <sys/time.h>
#include <iostream>
@@ -66,8 +67,7 @@
ElementPtr>());
gettimeofday(&now, NULL);
resp->set("sent", Element::create(now.tv_sec +
- (double)now.tv_usec /
- 1000000));
+ (double)now.tv_usec / 1000000));
resp->set("counter", Element::create(counter));
session_.group_sendmsg(resp, "statistics");
}
More information about the bind10-changes
mailing list