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
|
12446 |
Paul Allen |
Branching using p4convert-rusty |
|
|
//guest/perforce_software/p4convert/src/com/perforce/svn/prescan/Progress.java |
#1
|
9807 |
Paul Allen |
Initial import of p4-convert (from change 894340) |
|
|