#378: Advanced (pieces) progress bar
-------------------+--------------------------------------------------------
 Reporter:  andar  |       Owner:  andar 
     Type:  patch  |      Status:  new   
 Priority:  major  |   Milestone:  Future
Component:  gtkui  |     Version:        
 Keywords:         |  
-------------------+--------------------------------------------------------

Comment(by s0undt3ch):

 Ppl, I'm trying to extend the pieces information.
 Ie, each piece should have 4 states:

  * 0 - Missing
  * 1 - Present but not downloaded
  * 2 - Downloading
  * 3 - Downloaded

 So far I've managed to build this information, but, I'm at the end of my
 night shift and my head is getting too tired. How can I adapt the reduce
 function to this?

 Here's an example list:
 {{{
 #!python
 [3, 2, 1, 1, 1, 0, 0, 2, 0, 1, 0, 2, 0, 2, 1, 0, 2, 0, 0, 0, 2,
 0, 0, 0, 2, 0, 0, 2, 2, 1, 0, 2, 1, 0, 1, 1, 0, 0, 2, 0, 0, 0,
 0, 0, 0, 3, 3, 0, 0, 2, 0, 2, 2, 2, 0, 2, 2, 1]
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/378#comment:20>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to