mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 22:23:03 +00:00
fixed time log
This commit is contained in:
@@ -55,7 +55,6 @@ void ServerMain(int Port, int MaxClients) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ENetHost *server;
|
ENetHost *server;
|
||||||
|
|
||||||
ENetAddress address = {0};
|
ENetAddress address = {0};
|
||||||
|
|
||||||
address.host = ENET_HOST_ANY; //Bind the server to the default localhost.
|
address.host = ENET_HOST_ANY; //Bind the server to the default localhost.
|
||||||
|
|||||||
+3
-3
@@ -36,9 +36,9 @@ stringstream getDate() {
|
|||||||
|
|
||||||
int month = 1 + ltm->tm_mon;
|
int month = 1 + ltm->tm_mon;
|
||||||
int day = ltm->tm_mday;
|
int day = ltm->tm_mday;
|
||||||
int hours = 1 + ltm->tm_hour;
|
int hours = ltm->tm_hour;
|
||||||
int minutes = 1 + ltm->tm_min;
|
int minutes = ltm->tm_min;
|
||||||
int seconds = 1 + ltm->tm_sec;
|
int seconds = ltm->tm_sec;
|
||||||
|
|
||||||
string month_string;
|
string month_string;
|
||||||
if (month < 10) month_string = "0" + to_string(month);
|
if (month < 10) month_string = "0" + to_string(month);
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
// Created by Anonymous275 on 4/2/2020.
|
// Created by Anonymous275 on 4/2/2020.
|
||||||
//
|
//
|
||||||
|
|
||||||
#define LOGGER_H
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
Reference in New Issue
Block a user