Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 1866:579bf74f7da1
output creation time for mainline builds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Dec 2015 10:02:16 +0100 |
parents | d364926389e0 |
children | 9af3b492b010 e8146c9c28a4 |
comparison
equal
deleted
inserted
replaced
1865:ed7dd49aa777 | 1866:579bf74f7da1 |
---|---|
1097 | 1097 |
1098 /** | 1098 /** |
1099 * Launch Orthanc. | 1099 * Launch Orthanc. |
1100 **/ | 1100 **/ |
1101 | 1101 |
1102 LOG(WARNING) << "Orthanc version: " << ORTHANC_VERSION; | 1102 { |
1103 std::string version(ORTHANC_VERSION); | |
1104 | |
1105 if (std::string(ORTHANC_VERSION) == "mainline") | |
1106 { | |
1107 try | |
1108 { | |
1109 boost::filesystem::path exe(Toolbox::GetPathToExecutable()); | |
1110 std::time_t creation = boost::filesystem::last_write_time(exe); | |
1111 boost::posix_time::ptime converted(boost::posix_time::from_time_t(creation)); | |
1112 version += " (" + boost::posix_time::to_iso_string(converted) + ")"; | |
1113 } | |
1114 catch (...) | |
1115 { | |
1116 } | |
1117 } | |
1118 | |
1119 LOG(WARNING) << "Orthanc version: " << version; | |
1120 } | |
1103 | 1121 |
1104 int status = 0; | 1122 int status = 0; |
1105 try | 1123 try |
1106 { | 1124 { |
1107 for (;;) | 1125 for (;;) |