incorrect count of lines in custom window - 25/09/09 06:12 AM
With this the section regarding the fixed drive(s) works fine, but remote drive(s) have a problem.
The information is send to the window, like it's supposed to, but the number of lines is not increased.
On my fixed drives, I have about 5000 mp3 files, and on the remote drive I have about 50000. Thus if this code worked as I expected, it should show a total number of lines of about 55000.
However, it does not, it shows the 5000 count.
Here's hoping someone can figure out what's going on, and what I need to do in order to get a correct count.
Code:
alias music { var %ticks = $ticks, %a = 1, %b = $disk(0) while %a <= %b { if !$window(@Music) { .window @Music } if $disk(%a).type == fixed { noop $findfile($disk(%a).path,*.mp3,0,echo @Music $1-) } elseif $disk(%a).type = remote { noop $findfile($disk(%a).unc,*.mp3,0,echo @music $1-) } inc %a } %ticks = $calc($ticks - %ticks) var %lines = $line(@music,0) echo 11 @music Total lines %lines echo 4 @music Total time %ticks milliseconds echo 4 @music Average time $calc(%ticks / %lines) }
The information is send to the window, like it's supposed to, but the number of lines is not increased.
On my fixed drives, I have about 5000 mp3 files, and on the remote drive I have about 50000. Thus if this code worked as I expected, it should show a total number of lines of about 55000.
However, it does not, it shows the 5000 count.
Here's hoping someone can figure out what's going on, and what I need to do in order to get a correct count.