aboutsummaryrefslogtreecommitdiffstats
path: root/community/aria2/musl-fix-time64.patch
blob: 942fb9b3000ce86dd0df2e3185b74ccbb1629cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
upstream issue: https://github.com/aria2/aria2/issues/1666

diff --git a/src/ServerStat.cc b/src/ServerStat.cc
index d35407d..728a9e6 100644
--- a/src/ServerStat.cc
+++ b/src/ServerStat.cc
@@ -183,10 +183,10 @@ bool ServerStat::operator==(const ServerStat& serverStat) const
 std::string ServerStat::toString() const
 {
   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(),
              getSingleConnectionAvgSpeed(), getMultiConnectionAvgSpeed(),
-             getLastUpdated().getTimeFromEpoch(), getCounter(),
+             (int64_t)getLastUpdated().getTimeFromEpoch(), getCounter(),
              STATUS_STRING[getStatus()]);
 }