mirror of https://github.com/aria2/aria2
Merge branch 'ncopa-fix-time64' into master
commit
f292bbba85
|
@ -183,11 +183,12 @@ bool ServerStat::operator==(const ServerStat& serverStat) const
|
||||||
std::string ServerStat::toString() const
|
std::string ServerStat::toString() const
|
||||||
{
|
{
|
||||||
return fmt("host=%s, protocol=%s, dl_speed=%d, sc_avg_speed=%d,"
|
return fmt("host=%s, protocol=%s, dl_speed=%d, sc_avg_speed=%d,"
|
||||||
" mc_avg_speed=%d, last_updated=%ld, counter=%d, status=%s",
|
" mc_avg_speed=%d, last_updated=%" PRId64
|
||||||
|
", counter=%d, status=%s",
|
||||||
getHostname().c_str(), getProtocol().c_str(), getDownloadSpeed(),
|
getHostname().c_str(), getProtocol().c_str(), getDownloadSpeed(),
|
||||||
getSingleConnectionAvgSpeed(), getMultiConnectionAvgSpeed(),
|
getSingleConnectionAvgSpeed(), getMultiConnectionAvgSpeed(),
|
||||||
getLastUpdated().getTimeFromEpoch(), getCounter(),
|
static_cast<int64_t>(getLastUpdated().getTimeFromEpoch()),
|
||||||
STATUS_STRING[getStatus()]);
|
getCounter(), STATUS_STRING[getStatus()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
Loading…
Reference in New Issue