summaryrefslogtreecommitdiffstats
path: root/src/Net/Packets/LogPacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net/Packets/LogPacket.cpp')
-rw-r--r--src/Net/Packets/LogPacket.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Net/Packets/LogPacket.cpp b/src/Net/Packets/LogPacket.cpp
index fbe59cd..1d6ee88 100644
--- a/src/Net/Packets/LogPacket.cpp
+++ b/src/Net/Packets/LogPacket.cpp
@@ -18,7 +18,6 @@
*/
#include "LogPacket.h"
-#include <ctime>
namespace Mad {
namespace Net {
@@ -32,7 +31,7 @@ LogPacket::LogPacket(Type type, uint16_t requestId, Common::Logger::MessageCateg
logData->category = htons(category);
logData->level = htons(level);
- logData->messageTimestamp = htons(messageTimestamp);
+ logData->messageTimestamp = htonl(messageTimestamp);
std::memcpy(logData->message, message.c_str(), message.length());
}