QueueItem download speed

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

QueueItem download speed

Post by Big Muscle » 2004-02-06 08:08

How can I get current download speed of Queue Item ??? (and use it in QueueManager.cpp)

xhost+
Posts: 19
Joined: 2004-01-22 18:01
Location: in.the.middle.of.nowhere

Re: QueueItem download speed

Post by xhost+ » 2004-02-07 09:20

Haven't tested it but with a QueueItem you should get the associated download with getCurrentDownload(). With this download, you can get the average speed with getRunningAverage().

xhost+

Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Post by Big Muscle » 2004-02-07 10:15

Oh, I modify Reverse Connect source and it doesn't work. It says getCurrentDownload is not a member of Queue Item

I need to get speed of all segments of QueueItem.

Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Post by Big Muscle » 2004-02-08 11:24

I tried this

Download* d = new Download(qi, qi->getCurrents()[i]->getUser());

then if I use d->getTarget(), it works; but if I use d->getRunningAverage(), it returns 0.

Locked