Skip to content

Commit

Permalink
Improve version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Oct 31, 2023
1 parent 26287d4 commit cf323db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/proxy_server/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ inline std::string version_info()

if (os_name.find("Linux") != std::string::npos && ma_ver < 4)
std::cerr << "WARNING: kernel too old, please upgrade your system!" << std::endl;

#elif defined(__APPLE__)
os_name = "Darwin";
#else
os_name = "unknown";
os_name = BOOST_PLATFORM;
#endif

oss << "Built on " << __DATE__ << " " << __TIME__ << " runs on " << os_name
<< ", " << BOOST_COMPILER << ", boost " << BOOST_LIB_VERSION;
oss << "Built on " << __DATE__ << " " << __TIME__
<< " runs on " << os_name
<< ", " << BOOST_COMPILER
<< ", STL: " << BOOST_STDLIB
<< ", boost " << BOOST_LIB_VERSION;

std::cerr << oss.str() << "\n";
return oss.str();
Expand Down

0 comments on commit cf323db

Please sign in to comment.