Skip to content

Commit 4357d38

Browse files
committed
Change path truncation from 100 to 120 chars in FileRush
1 parent 2fd78f4 commit 4357d38

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/FileRush/src/main/java/fastfileindex/FileRush.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public static void main(String[] args) {
2222

2323
@Override
2424
public void onProgress(long current, long total, String currentPath) {
25-
// Truncate path to fit console width (100 chars) to avoid word wrap
25+
// Truncate path to fit console width (120 chars) to avoid word wrap
2626
String displayPath = currentPath;
27-
if (currentPath != null && currentPath.length() > 100) {
28-
displayPath = "..." + currentPath.substring(currentPath.length() - 97);
27+
if (currentPath != null && currentPath.length() > 120) {
28+
displayPath = "..." + currentPath.substring(currentPath.length() - 117);
2929
}
3030
System.out.println(displayPath);
3131
System.out.flush();

0 commit comments

Comments
 (0)