From 1eba1311eb52f77d279a83af2dd5d400a9b4059d Mon Sep 17 00:00:00 2001 From: Srie Teja Date: Fri, 7 Jun 2024 15:01:04 +0530 Subject: [PATCH] chore: fix typos --- .../src/compaction/at_compaction_service.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/at_persistence_secondary_server/lib/src/compaction/at_compaction_service.dart b/packages/at_persistence_secondary_server/lib/src/compaction/at_compaction_service.dart index 648266a00..2c21c0125 100644 --- a/packages/at_persistence_secondary_server/lib/src/compaction/at_compaction_service.dart +++ b/packages/at_persistence_secondary_server/lib/src/compaction/at_compaction_service.dart @@ -25,20 +25,20 @@ class AtCompactionService { Future executeCompaction(AtLogType atLogType) async { // Pre-compaction metrics int numberOfKeysBeforeCompaction = atLogType.entriesCount(); - int dataTimeBeforeCompactionInMills = + int dateTimeBeforeCompactionInMills = DateTime.now().toUtc().millisecondsSinceEpoch; // Run compaction await executeCompactionInternal(atLogType); // Post-compaction metrics - int dataTimeAfterCompactionInMills = + int dateTimeAfterCompactionInMills = DateTime.now().toUtc().millisecondsSinceEpoch; int numberOfKeysAfterCompaction = atLogType.entriesCount(); // Sets the metrics to AtCompactionStats AtCompactionStats atCompactionStats = _generateStats( atLogType, - dataTimeBeforeCompactionInMills, + dateTimeBeforeCompactionInMills, numberOfKeysBeforeCompaction, - dataTimeAfterCompactionInMills, + dateTimeAfterCompactionInMills, numberOfKeysAfterCompaction); return atCompactionStats; } @@ -54,9 +54,9 @@ class AtCompactionService { AtCompactionStats _generateStats( AtLogType atLogType, - int dataTimeBeforeCompactionInMills, + int dateTimeBeforeCompactionInMills, int numberOfKeysBeforeCompaction, - int dataTimeAfterCompactionInMills, + int dateTimeAfterCompactionInMills, int numberOfKeysAfterCompaction) { // Reset the compaction stats to clear the earlier stats metrics _resetAtCompactionStats(); @@ -65,9 +65,9 @@ class AtCompactionService { ..preCompactionEntriesCount = numberOfKeysBeforeCompaction ..postCompactionEntriesCount = numberOfKeysAfterCompaction ..compactionDurationInMills = - DateTime.fromMillisecondsSinceEpoch(dataTimeAfterCompactionInMills) + DateTime.fromMillisecondsSinceEpoch(dateTimeAfterCompactionInMills) .difference(DateTime.fromMillisecondsSinceEpoch( - dataTimeBeforeCompactionInMills)) + dateTimeBeforeCompactionInMills)) .inMilliseconds ..deletedKeysCount = (numberOfKeysBeforeCompaction - numberOfKeysAfterCompaction)