package com.perforce.svn.prescan;
public class Progress {
private long end;
private long rev = 0;
private int progress = 0;
public Progress(long end) {
this.end = end;
}
public void update(int r) {
int percent = (int) (rev * 100 / end);
if (percent > progress) {
progress = percent;
System.out.print("Progress: " + percent + "%\r");
}
rev = r;
}
public boolean done() {
return (rev > end);
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
13876 |
Paul Allen |
Rename/move file(s) |
|
|
//guest/paul_allen/p4convert-maven/src/com/perforce/svn/prescan/Progress.java |
#1
|
13873 |
Paul Allen |
Branching using p4convert-maven |
|
|
//guest/perforce_software/p4convert/src/com/perforce/svn/prescan/Progress.java |
#1
|
9807 |
Paul Allen |
Initial import of p4-convert (from change 894340) |
|
|