This forum has been archived. All content is frozen. Please use KDE Discuss instead.

WISH: Better estimation of download times

Tags: None
(comma "," separated)
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sat Oct 08, 2005 5:53 pm
I've just got some log files ready for testing, but your processlog.rb script doesn't seem to work.
I start it like:
Code: Select all
ivan@linux:~/.kde/share/apps/ktorrent> ruby processlog.rb ./log
ivan@linux:~/.kde/share/apps/ktorrent> l
total 222
drwx------   9 ivan users    304 2005-10-08 19:49 ./
drwx------  70 ivan users   1880 2005-10-06 12:21 ../
-rw-r--r--   1 ivan users 213808 2005-10-08 19:45 log
-rw-r--r--   1 ivan users    477 2005-10-08 19:49 processlog.rb
-rw-r--r--   1 ivan users    783 2005-10-06 16:46 search_engines
drwxr-xr-x   2 ivan users    200 2005-10-08 17:57 tor0/
drwxr-xr-x   3 ivan users    200 2005-10-08 15:52 tor1/
drwxr-xr-x   3 ivan users    200 2005-10-08 17:43 tor2/
drwxr-xr-x   3 ivan users    200 2005-10-08 17:57 tor3/
drwxr-xr-x   3 ivan users    200 2005-10-08 15:53 tor4/
drwxr-xr-x   3 ivan users    176 2005-10-08 19:45 tor5/
drwxr-xr-x   3 ivan users    200 2005-10-08 18:03 tor6/
ivan@linux:~/.kde/share/apps/ktorrent> ruby -dvw processlog.rb ./log
ruby 1.8.1 (2003-12-25) [i686-linux]
ivan@linux:~/.kde/share/apps/ktorrent> l
total 222
drwx------   9 ivan users    304 2005-10-08 19:49 ./
drwx------  70 ivan users   1880 2005-10-06 12:21 ../
-rw-r--r--   1 ivan users 213808 2005-10-08 19:45 log
-rw-r--r--   1 ivan users    477 2005-10-08 19:49 processlog.rb
-rw-r--r--   1 ivan users    783 2005-10-06 16:46 search_engines
drwxr-xr-x   2 ivan users    200 2005-10-08 17:57 tor0/
drwxr-xr-x   3 ivan users    200 2005-10-08 15:52 tor1/
drwxr-xr-x   3 ivan users    200 2005-10-08 17:43 tor2/
drwxr-xr-x   3 ivan users    200 2005-10-08 17:57 tor3/
drwxr-xr-x   3 ivan users    200 2005-10-08 15:53 tor4/
drwxr-xr-x   3 ivan users    176 2005-10-08 19:45 tor5/
drwxr-xr-x   3 ivan users    200 2005-10-08 18:03 tor6/

I'm not very familiar with ruby, so I can't help with debugging :(
imported4-Frank
Registered Member
Posts
11
Karma
0

Sat Oct 08, 2005 6:02 pm
Ivan wrote:I've just got some log files ready for testing, but your processlog.rb script doesn't seem to work.
[...]
I'm not very familiar with ruby, so I can't help with debugging :(


Hmm, hmm. I should add some verbose output. Your torrent filenames don't contain "," I guess? The lines must be splitted into exactly seven chunks, separated using ",".
Btw, it would be convenient to have the scripts and the patch (which needed adjustments for current trunk) in SVN, like ktorrent/estimation-scripts. They won't get big in size and could be removed later.
Is that possible?
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sat Oct 08, 2005 6:17 pm
Ups, sorry, it was my mistake. I used wrong log file...
Everything works OK now.

Btw, it would be convenient to have the scripts and the patch (which needed adjustments for current trunk) in SVN, like ktorrent/estimation-scripts. They won't get big in size and could be removed later.
Is that possible?

We'll have to consult George for that one. It's ok with me, though.
George
Moderator
Posts
5421
Karma
1

Sun Oct 09, 2005 9:27 am
Btw, it would be convenient to have the scripts and the patch (which needed adjustments for current trunk) in SVN, like ktorrent/estimation-scripts. They won't get big in size and could be removed later.
Is that possible?


Sure, directory is made, you can add the files there. You do have an svn account ?
imported4-Frank
Registered Member
Posts
11
Karma
0

Sun Oct 09, 2005 10:05 am
George wrote:Sure, directory is made, you can add the files there. You do have an svn account ?


Yes, just committed them. :-)
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sun Oct 09, 2005 12:32 pm
Frank, is it possible to add help/readme file in this directory to explain usage of these scripts? Something like on your website will be ok.

EstimationResults.rb got me thinking of this...
imported4-Frank
Registered Member
Posts
11
Karma
0

Sun Oct 09, 2005 12:44 pm
Ivan wrote:Frank, is it possible to add help/readme file in this directory to explain usage of these scripts? Something like on your website will be ok.

EstimationResults.rb got me thinking of this...


Heh, just writing a simple readme. Well, it's quite basic now, without detailed information. I think I have to put the classes together and create some html page with estimation results. When I find the time to look into gnuplot...
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sun Oct 09, 2005 1:01 pm
EstimationResults.rb gave me some syntax errors, and wouldn't work - so I thought maybe I was using it wrong.

Anyway, I can help you with gnuplot. It can be quite simple if we want to plot rel. errors for 3 algorithms for example - we just need txt file with 3 columns of data, one for each algorithm. Gnuplot will plot that file without problems.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]