diff --git a/lib/socket.cpp b/lib/socket.cpp index ea825a1e..070dd3fd 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -423,12 +423,12 @@ unsigned int Socket::Connection::connTime() { } /// Returns total amount of bytes sent. -unsigned int Socket::Connection::dataUp() { +uint64_t Socket::Connection::dataUp() { return up; } /// Returns total amount of bytes received. -unsigned int Socket::Connection::dataDown() { +uint64_t Socket::Connection::dataDown() { return down; } diff --git a/lib/socket.h b/lib/socket.h index c2b83740..633d6ab5 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -49,8 +49,8 @@ namespace Socket { int sock; ///< Internally saved socket number. int pipes[2]; ///< Internally saved file descriptors for pipe socket simulation. std::string remotehost; ///< Stores remote host address. - unsigned int up; - unsigned int down; + uint64_t up; + uint64_t down; long long int conntime; Buffer downbuffer; ///< Stores temporary data coming in. int iread(void * buffer, int len, int flags = 0); ///< Incremental read call. @@ -88,8 +88,8 @@ namespace Socket { void SendNow(const char * data, size_t len); ///< Will not buffer anything but always send right away. Blocks. //stats related methods unsigned int connTime();///< Returns the time this socket has been connected. - unsigned int dataUp(); ///< Returns total amount of bytes sent. - unsigned int dataDown(); ///< Returns total amount of bytes received. + uint64_t dataUp(); ///< Returns total amount of bytes sent. + uint64_t dataDown(); ///< Returns total amount of bytes received. std::string getStats(std::string C); ///< Returns a std::string of stats, ended by a newline. friend class Server; bool Error; ///< Set to true if a socket error happened. diff --git a/src/output/output.cpp b/src/output/output.cpp index e6572586..6ba36189 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -229,7 +229,7 @@ namespace Mist { void Output::reconnect(){ thisPacket.null(); if (!Util::startInput(streamName)){ - FAIL_MSG("Opening stream %s failed - aborting initalization", streamName.c_str()); + FAIL_MSG("Opening stream %s failed - aborting initialization", streamName.c_str()); onFail(); return; }