Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for 3G (0.06 seconds)

  1. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

            assertEquals("1000", FessFunctions.formatFileSize(1000));
            assertEquals("976.6K", FessFunctions.formatFileSize(1000000));
            assertEquals("953.7M", FessFunctions.formatFileSize(1000000000));
            assertEquals("931.3G", FessFunctions.formatFileSize(1000000000000L));
            assertEquals("909.5T", FessFunctions.formatFileSize(1000000000000000L));
        }
    
        @Test
        public void test_parseDate() {
            Date date;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

        }
    
        /**
         * Formats a file size in bytes to a human-readable string with appropriate units.
         *
         * @param value the file size in bytes
         * @return formatted file size string (e.g., "1.5M", "2.3G", "512K")
         */
        public static String formatFileSize(final long value) {
            double target = value;
            String unit = ""; // TODO l10n?
            String format = "0.#";
            if (value < 1024) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.4K bytes
    - Click Count (1)
Back to Top