mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
fixed time log
This commit is contained in:
parent
c47e8783e6
commit
4503338378
@ -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.
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user