Browse Source

#include <sys/time.h> for gettimeofday()

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@278 e5f2f494-b856-4b98-b285-d166d9295462
Evan Hunt 15 years ago
parent
commit
ef93bc175b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bin/parkinglot/ccsession.cc

+ 2 - 2
src/bin/parkinglot/ccsession.cc

@@ -17,6 +17,7 @@
 #include <stdexcept>
 #include <stdexcept>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
+#include <sys/time.h>
 
 
 #include <iostream>
 #include <iostream>
 
 
@@ -66,8 +67,7 @@ CommandSession::getCommand(int counter) {
                                               ElementPtr>());
                                               ElementPtr>());
             gettimeofday(&now, NULL);
             gettimeofday(&now, NULL);
             resp->set("sent", Element::create(now.tv_sec +
             resp->set("sent", Element::create(now.tv_sec +
-                                              (double)now.tv_usec /
-                                              1000000));
+                                              (double)now.tv_usec / 1000000));
             resp->set("counter", Element::create(counter));
             resp->set("counter", Element::create(counter));
             session_.group_sendmsg(resp, "statistics");
             session_.group_sendmsg(resp, "statistics");
         }
         }