mirror of https://github.com/aria2/aria2
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Return connections and gid in string * src/XmlRpcMethodImpl.ccpull/1/head
parent
81b19074f8
commit
7c24aa3b97
|
@ -1,3 +1,8 @@
|
|||
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Return connections and gid in string
|
||||
* src/XmlRpcMethodImpl.cc
|
||||
|
||||
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Renamed addURI as addUri
|
||||
|
|
|
@ -173,7 +173,7 @@ static void gatherProgressCommon
|
|||
TransferStat stat = group->calculateStat();
|
||||
entryDict["downloadSpeed"] = BDE(Util::uitos(stat.getDownloadSpeed()));
|
||||
entryDict["uploadSpeed"] = BDE(Util::uitos(stat.getUploadSpeed()));
|
||||
entryDict["connections"] = group->getNumConnection();
|
||||
entryDict["connections"] = BDE(Util::uitos(group->getNumConnection()));
|
||||
SharedHandle<PieceStorage> ps = group->getPieceStorage();
|
||||
if(!ps.isNull()) {
|
||||
if(ps->getBitfieldLength() > 0) {
|
||||
|
@ -224,7 +224,7 @@ static void gatherProgress
|
|||
static void gatherStoppedDownload
|
||||
(BDE& entryDict, const SharedHandle<DownloadResult>& ds)
|
||||
{
|
||||
entryDict["gid"] = ds->gid;
|
||||
entryDict["gid"] = BDE(Util::itos(ds->gid));
|
||||
if(ds->result == DownloadResult::IN_PROGRESS) {
|
||||
entryDict["status"] = BDE("removed");
|
||||
} else if(ds->result == DownloadResult::FINISHED) {
|
||||
|
|
Loading…
Reference in New Issue