Skip to content

Commit

Permalink
https://github.com/StephaneCouturier/Katalog/issues/536
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneCouturier committed Jul 8, 2024
1 parent 9d94af6 commit 66a8db3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ QList<qint64> Storage::updateStorageInfo(bool reportStorageUpdate)
qint64 previousStorageFreeSpace = freeSpace;
qint64 previousStorageTotalSpace = totalSpace;
qint64 previousStorageUsedSpace = previousStorageTotalSpace - previousStorageFreeSpace;
QDateTime lastUpdate = dateTimeUpdated;

//Get device information
QStorageInfo storageInfo;
Expand Down Expand Up @@ -291,18 +290,6 @@ QList<qint64> Storage::updateStorageInfo(bool reportStorageUpdate)
queryTotalSpace.bindValue(":device_external_id", ID);
queryTotalSpace.exec();

//Stop if the update was not done (lastUpdate time did not change)
if (lastUpdate == dateTimeUpdated){
list.append(0);//not updated
list.append(0);
list.append(0);
list.append(0);
list.append(0);
list.append(0);
list.append(0);
return list;
}

//Prepare to report changes to the storage
qint64 newStorageFreeSpace = freeSpace;
qint64 deltaStorageFreeSpace = newStorageFreeSpace - previousStorageFreeSpace;
Expand Down

0 comments on commit 66a8db3

Please sign in to comment.