| 934 | } |
| 935 | |
| 936 | char const* timestamp() |
| 937 | { |
| 938 | time_t t = std::time(nullptr); |
| 939 | #ifdef TORRENT_WINDOWS |
| 940 | std::tm const* timeinfo = localtime(&t); |
| 941 | #else |
| 942 | std::tm buf; |
| 943 | std::tm const* timeinfo = localtime_r(&t, &buf); |
| 944 | #endif |
| 945 | static char str[200]; |
| 946 | std::strftime(str, 200, "%b %d %X", timeinfo); |
| 947 | return str; |
| 948 | } |
| 949 | |
| 950 | void print_alert(lt::alert const* a, std::string& str) |
| 951 | { |
no outgoing calls
no test coverage detected