Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for formatProgress (0.1 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java

            assertEquals("0.4/8.0 kB", format.formatProgress(_400_bytes, _8000_bytes));
            assertEquals("4.0/8.0 kB", format.formatProgress(_4000_bytes, _8000_bytes));
            assertEquals("8.0 kB", format.formatProgress(_8000_bytes, _8000_bytes));
            assertEquals("8.0/50 kB", format.formatProgress(_8000_bytes, _50_kilobytes));
            assertEquals("16/50 kB", format.formatProgress(2L * _8000_bytes, _50_kilobytes));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

                builder.append(" ").append(unit.symbol());
            }
        }
    
        public String formatProgress(long progressedSize, long size) {
            StringBuilder sb = new StringBuilder();
            formatProgress(sb, progressedSize, size);
            return sb.toString();
        }
    
        public void formatProgress(StringBuilder builder, long progressedSize, long size) {
            if (progressedSize < 0L) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java

                    } else {
                        buffer.append(resourceName, idx + 1, resourceName.length());
                    }
                    buffer.append(" (");
                }
    
                format.formatProgress(buffer, complete, total);
    
                if (printResourceNames) {
                    buffer.append(")");
                }
    
                if (entries.hasNext()) {
                    buffer.append(" | ");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top