Skip to content

Commit

Permalink
fix build on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
garymm committed Nov 18, 2023
1 parent 55dff0f commit f6b434b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,10 @@ void Client::ReceiveAll()
}
/*
// Get current time
auto now = std::chrono::high_resolution_clock::now();
auto now = std::chrono::sytem_clock::now();
// Convert to a time_t object
auto now_c = std::chrono::high_resolution_clock::to_time_t(now);
auto now_c = std::chrono::system_clock::to_time_t(now);
// Convert to local time
std::tm* now_tm = std::localtime(&now_c);
Expand Down Expand Up @@ -1935,10 +1935,10 @@ std::string Client::getInfo() {
std::string info(lua_tolstring(L, lua_gettop(L), &str_len));

// Get current time
auto now = std::chrono::high_resolution_clock::now();
auto now = std::chrono::system_clock::now();

// Convert to a time_t object
auto now_c = std::chrono::high_resolution_clock::to_time_t(now);
auto now_c = std::chrono::system_clock::to_time_t(now);

// Convert to local time
std::tm* now_tm = std::localtime(&now_c);
Expand Down Expand Up @@ -1979,10 +1979,10 @@ float Client::getReward() {
reward = (float)lua_tonumber(L, lua_gettop(L));

// Get current time
auto now = std::chrono::high_resolution_clock::now();
auto now = std::chrono::system_clock::now();

// Convert to a time_t object
auto now_c = std::chrono::high_resolution_clock::to_time_t(now);
auto now_c = std::chrono::system_clock::to_time_t(now);

// Convert to local time
std::tm* now_tm = std::localtime(&now_c);
Expand Down

0 comments on commit f6b434b

Please sign in to comment.