mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4d50c6a24 |
@@ -54,7 +54,11 @@ public class LoggingTransferListener
|
||||
public void reportProgress(long transferred)
|
||||
throws IOException {
|
||||
if (log.isTraceEnabled()) {
|
||||
log.trace("transferred {}% of `{}`", ((transferred * 100) / size), path);
|
||||
long percent = 100;
|
||||
if (size > 0) {
|
||||
percent = (transferred * 100)/size;
|
||||
}
|
||||
log.trace("transferred {}% of `{}`", percent, path);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user