Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111889

Wrong description QStorageInfo

    XMLWordPrintable

Details

    • All

    Description

      Wrong qstorageinfo description  there are 1024MB (megabytes) in one GB (gigabyte)

       

      ```QStorageInfo storage = QStorageInfo::root();

          qDebug() << storage.rootPath();
          if (storage.isReadOnly())
              qDebug() << "isReadOnly:" << storage.isReadOnly();

          qDebug() << "name:" << storage.name();
          qDebug() << "fileSystemType:" << storage.fileSystemType();
          qDebug() << "size:" << storage.bytesTotal()/1000/1000 << "MB";
          qDebug() << "availableSize:" << storage.bytesAvailable()/1000/1000 << "MB";

      ```

       

      replace 1000 to 1024 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            andr1312e Andrew Pilikin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes