Happy new year
[yazpp-moved-to-github.git] / src / limit-connect.cpp
index 3b63759..57cb5bd 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the yazpp toolkit.
- * Copyright (C) 1998-2009 Index Data and Mike Taylor
+ * Copyright (C) 1998-2012 Index Data and Mike Taylor
  * All rights reserved.
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <yazpp/limit-connect.h>
 
 #include <time.h>
 #include <string.h>
 #include <yaz/xmalloc.h>
+#include <yazpp/timestat.h>
 
 using namespace yazpp_1;
 
@@ -41,7 +45,7 @@ struct LimitConnect::Peer {
     void add_connect();
     
     char *m_peername;
-    Yaz_bw m_bw;
+    TimeStat m_bw;
     Peer *m_next;
 };