aboutsummaryrefslogtreecommitdiff
path: root/statsd/stats.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2017-04-16 22:00:46 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2017-04-16 22:00:46 +0200
commit33f81a3a57a047326160f371f3269dfb47c59cba (patch)
treedc6e39bca104d7d440f19ae0d663b42afea2835f /statsd/stats.hpp
parentd680f8d3848cbc3adf7d6b2c49e10abc4499cfca (diff)
downloadcmix-33f81a3a57a047326160f371f3269dfb47c59cba.tar.gz
cmix-33f81a3a57a047326160f371f3269dfb47c59cba.tar.bz2
cmix-33f81a3a57a047326160f371f3269dfb47c59cba.zip
Some cleanup and tweaked the statsd slightly.
Diffstat (limited to 'statsd/stats.hpp')
-rw-r--r--statsd/stats.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/statsd/stats.hpp b/statsd/stats.hpp
index b6e4bca..bcf85c5 100644
--- a/statsd/stats.hpp
+++ b/statsd/stats.hpp
@@ -10,7 +10,7 @@
#include <list>
class Stats {
- boost::asio::io_service io_service;
+ boost::asio::io_service& io_service;
Server server;
std::list<Receiver> connections;
@@ -27,8 +27,8 @@ class Stats {
void handle_message(std::list<Receiver>::iterator it, cmix_proto::CMixMessage message);
public:
- Stats(ListenSettings lsettings);
+ Stats(boost::asio::io_service& io_service, ListenSettings lsettings);
void run();
void output(std::string file);
-}; \ No newline at end of file
+};