]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
Fix tariff field name in XML-RPC API documentation (tariff -> name)
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index f410b1090b3413e8a039a5a091773fa1ac6105bd..3f6eb0c0f9980e4486ab04284a686b4b11a4fad1 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 /* inet_aton */
  */
 
 /* inet_aton */
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -37,9 +38,9 @@
 #include <cassert>
 #include <cstdio> // fopen and similar
 
 #include <cassert>
 #include <cstdio> // fopen and similar
 
+#include "stg/common.h"
+#include "stg/locker.h"
 #include "traffcounter_impl.h"
 #include "traffcounter_impl.h"
-#include "common.h"
-#include "stg_locker.h"
 #include "stg_timer.h"
 
 #define FLUSH_TIME  (10)
 #include "stg_timer.h"
 
 #define FLUSH_TIME  (10)
@@ -938,7 +939,7 @@ return;
 //-----------------------------------------------------------------------------
 void TRAFFCOUNTER_IMPL::SetMonitorDir(const std::string & monitorDir)
 {
 //-----------------------------------------------------------------------------
 void TRAFFCOUNTER_IMPL::SetMonitorDir(const std::string & monitorDir)
 {
-TRAFFCOUNTER::monitorDir = monitorDir;
+TRAFFCOUNTER_IMPL::monitorDir = monitorDir;
 monitoring = (monitorDir != "");
 }
 //-----------------------------------------------------------------------------
 monitoring = (monitorDir != "");
 }
 //-----------------------------------------------------------------------------