Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #37942 Wrong unit for disk usage statistics in export
    Infos
    #37942
    Guilhem Bonnefille (CS) (gbonnefille)
    2024-05-14 14:28
    2024-05-13 15:11
    39595
    Details
    Wrong unit for disk usage statistics in export

    When exporting statistics (https://tuleap.net/plugins/statistics/data_export.php) two columns states data as MB:

    • Disk usage at start date (MB)
    • Disk usage at end date (MB)

    But the computation is wrong. In the code (plugins/statistics/include/Statistics_Services_UsageFormatter.class.php:26) we read:

        /** @const number of bytes in a MegaByte */
        public const BYTES_NUMBER_IN_MB = 1000;
    

    This is wrong: MB = 1000*kB = 1000*1000*B

    Site admin
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2024-05-14
    Attachments
    Empty
    References
    Referenced by request #37942

    Follow-ups