From 6fd342e26591a675d82fe6ec12338096f7e7798f Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Thu, 7 Apr 2022 17:01:23 +0200 Subject: [PATCH] Fix typo --- sources/machine_info.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index e77db0d29..da0a51ce7 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -153,23 +153,23 @@ void MachineInfo::send_info_to_debug() foreach (const QStorageInfo &storage, QStorageInfo::mountedVolumes()) { if (storage.isReadOnly()) - qInfo() << "isReadOnly:" << storage.isReadOnly(); + qDebug() << "isReadOnly:" << storage.isReadOnly(); qInfo() << "DISK :" << storage.rootPath().toLocal8Bit().constData() << " "; qInfo() << "FileSystemType:" << storage.fileSystemType(); - qInfo() << "SizeTotal:" << storage.bytesFree() /1024/1024/1024 << "GB"; - qInfo() << "AvailableSize:" << storage.bytesAvailable()/1024/1024/1024 << "GB"; + qInfo() << "SizeTotal:" << storage.bytesTotal()/1000000000 << "GB"; + qInfo() << "AvailableSize:" << storage.bytesAvailable()/1000000000 << "GB"; } QStorageInfo storage(qApp->applicationDirPath()); if (storage.isReadOnly()) - qInfo() << "isReadOnly:" << storage.isReadOnly(); + qDebug() << "isReadOnly:" << storage.isReadOnly(); qInfo() << "DISK USED:" << storage.rootPath().toLocal8Bit().constData() << " "; qInfo() << "FileSystemType:" << storage.fileSystemType(); - qInfo() << "SizeTotal:" << storage.bytesFree()/1024/1024/1024 << "GB"; - qInfo() << "AvailableSize:" << storage.bytesAvailable()/1024/1024/1024 << "GB"; + qInfo() << "SizeTotal:" << storage.bytesTotal()/1000000000 << "GB"; + qInfo() << "AvailableSize:" << storage.bytesAvailable()/1000000000 << "GB"; }