•  
      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
    39547
    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
    Referencing request #37942
    Referenced by request #37942

    Artifact Tracker v5

    rel #36798 15.9

    Follow-ups