mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-30 17:50:07 +08:00
fc6ee38e51
aria2's tellStatus only returns the keys it's asked for, but aria2StatusKeys omitted uploadLength, uploadSpeed, connections and numSeeders — while aria2Detail reads status.UploadLength/UploadSpeed/Connections/NumSeeders. So the runtime reported them all as 0: during seeding the Overview showed 0 B/s upload and 0 B uploaded, even though the Peers list had per-peer upload activity (that comes from a separate getPeers call). Confirmed on live aria2: the seeding torrent reported uploadSpeed ~3.26MB/s and uploadLength ~2.5GB when those keys were requested. Adds the missing keys + a guard test.