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 | |
---|---|---|---|---|---|
#2 | 13920 | Paul Allen | copy part 2 (no errors) | ||
#1 | 9807 | Paul Allen | Initial import of p4-convert (from change 894340) |