[EGD-3040] DatabaseModel element calculation fix.

This commit is contained in:
Przemyslaw Brudny
2020-04-29 12:20:51 +02:00
committed by PrzeBrudny
parent d19daa724b
commit 9b7210ad3a
2 changed files with 16 additions and 30 deletions

View File

@@ -19,10 +19,7 @@ NotesModel::~NotesModel()
void NotesModel::requestRecordsCount()
{
uint32_t start = xTaskGetTickCount();
recordsCount = DBServiceAPI::NotesGetCount(application);
uint32_t stop = xTaskGetTickCount();
LOG_INFO("DBServiceAPI::NotesGetCount %d records %" PRIu32 " ms", recordsCount, stop - start);
// request first and second page if possible
if (recordsCount > 0) {