mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
Compare commits
1 Commits
acad163e50
...
issue-550
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4d50c6a24 |
@@ -54,7 +54,11 @@ public class LoggingTransferListener
|
|||||||
public void reportProgress(long transferred)
|
public void reportProgress(long transferred)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
if (log.isTraceEnabled()) {
|
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