Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 07:04:40 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: % Finished in jkdefragcmd  (Read 4564 times)
isgdre
JkDefrag Hero
*****
Posts: 71


View Profile
« on: April 10, 2008, 05:38:14 pm »

Whould it be possable to put the persentage done in the jkdefragcmd?  Much like it's in the jkdefrag.
Maybe something like this.


static int LastPDone=-1;
int PDone.

PDone=(Done/total*100) // Or what ever your calculation is.

if( LastPDone != PDone ) {
     printf("\r%d%% \r", PDone);
     LastPDone=PDone;
}



That way we get an idea of how far along it is without a lot of prints on the screen to just slow things down and you regurlare output will just overwrite the old % Done info when it's not longer needed.

What do you think?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: April 11, 2008, 06:38:57 am »

There is progress indicator in the commandline version, but it is only displayed at debug level 3 or higher "-d 3". I have done this because people have asked for that in the past. Apparently not everybody is interested in such an indicator.... Please note that overwriting the old number works fine on a console, but still generates a lot of data when the output is piped to a file or a remote console.
Logged
isgdre
JkDefrag Hero
*****
Posts: 71


View Profile
« Reply #2 on: April 11, 2008, 10:23:11 pm »

Thanks for the info.

Yup. Know about the piping thing.

-d 3 adds a lot of others stuff.  So much so if there is a % finished in there I missed it. 

Would it be possable to add it as a seperate option?

-pc for example?

Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: April 12, 2008, 08:21:51 am »

Would it be possable to add it as a seperate option?
Thanks for sharing your idea, I appreciate it! I have put it on the wishlist for v4 of JkDefrag.
Logged
athlonxp
JkDefrag Senior
****
Posts: 31



View Profile
« Reply #4 on: April 13, 2008, 02:59:21 pm »

Would it be possable to add it as a seperate option?
Thanks for sharing your idea, I appreciate it! I have put it on the wishlist for v4 of JkDefrag.

when can we see a little alpha or so from version 4 of jkdefrag Smiley ?
Logged

test
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #5 on: April 17, 2008, 08:55:19 pm »

when can we see a little alpha or so from version 4 of jkdefrag Smiley ?
Progress is very slow, I am extremely busy with other things right now. You can see the grammar of the scripting language I am planning to put into v4, if you are interested, at: grammar.grm. Perhaps I should not call it a scripting language, it's more of a parameter-passing language, the same paradigm as SQL.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!