Re: How to see time it took to download a torrent?
Posted: Thu Jun 30, 2011 2:49 am
Okay I did this, but it's freezing my deluge now when it executes. Checking PIDs I see:
I kill the script (5th line down above) and deluge resumes as normal 
To be clear I'm running this in the script:
And in the torrentTimeDelta.py script my shebang is
Code: Select all
psaux deluge
bobby 1599 0.8 0.8 73760 28544 ? Sl Jun28 13:24 /usr/bin/python2 /usr/bin/deluged
bobby 1604 0.3 0.4 22372 16460 ? S Jun28 6:02 /usr/bin/python2 /usr/bin/deluge-web -f
bobby 1809 0.2 0.2 15816 6752 pts/5 Ss+ Jun28 4:24 /usr/bin/python2 /usr/bin/deluge-console
bobby 6174 0.0 0.0 3136 1060 ? S 22:37 0:00 /bin/bash /home/bobby/scripts/deluge/torrent_complete.sh 5a2a695ecbbd159570d22a263cc829108fe775d3 Katy Perry - Teenage Dream.mp3 /media/stuff/torrents
bobby 6175 0.4 0.2 12732 9904 ? S 22:37 0:00 python2 /home/bobby/scripts/deluge/torrentTimeDelta.py 5a2a695ecbbd159570d22a263cc829108fe775d3
bobby 6582 0.0 0.0 3948 856 pts/12 S+ 22:38 0:00 grep -i --color=auto deluge
bobby 10897 0.0 0.5 217508 16864 pts/9 Sl+ 18:32 0:08 gedit deluge/torrent_complete.sh deluge/torrent_complete.sh~ deluge/torrent_time.sh

To be clear I'm running this in the script:
Code: Select all
torrenttimedelta=`/usr/bin/python2 /home/bobby/scripts/deluge/torrentTimeDelta.py $1`
Code: Select all
#!/usr/bin/python2