Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 444478f

Browse files
committed
added a few debug info
1 parent 8de49c3 commit 444478f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/ramdatainterface/localdatainterface.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,14 @@ void LocalDataInterface::autoCleanDB(QSqlDatabase db)
12421242

12431243
// Add the project in schedule entries data
12441244
qry.exec("SELECT `uuid`, `data` FROM 'RamScheduleEntry' ;");
1245+
1246+
// Count the results to help the progress bar
1247+
qry.last();
1248+
int numRows = qry.at() + 1;
1249+
pm->addToMaximum( numRows );
1250+
qDebug() << "Found " << numRows << " RamScheduleEntry...";
1251+
qry.seek(-1);
1252+
12451253
// To speed up things, keep step/project association
12461254
QHash<QString,QString> stepProjectUuids;
12471255
QStringList uuidsToRemove;
@@ -1284,6 +1292,9 @@ void LocalDataInterface::autoCleanDB(QSqlDatabase db)
12841292
else uuidsToRemove << uuid;
12851293
}
12861294

1295+
qDebug() << "Found " << uuidsToRemove.count() << " invalid or empty entries to remove.";
1296+
qDebug() << "From " << updateData.count() << " entries to update with the project info.";
1297+
12871298
// Remove uuids without project
12881299
// Split in 250 rows at once
12891300
if (!uuidsToRemove.isEmpty())
@@ -1336,7 +1347,7 @@ void LocalDataInterface::autoCleanDB(QSqlDatabase db)
13361347

13371348
// Count the results to help the progress bar
13381349
qry.last();
1339-
int numRows = qry.at() + 1;
1350+
numRows = qry.at() + 1;
13401351
pm->addToMaximum( numRows );
13411352
qDebug() << "Found " << numRows << " RamStatus...";
13421353
qry.seek(-1);

0 commit comments

Comments
 (0)