Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Fix minor logging bug (#8464)

Neeraj9d0a3c2b4463
diff --git a/mobile/apps/photos/lib/db/upload_locks_db.dart b/mobile/apps/photos/lib/db/upload_locks_db.dart
index 105e6e66a1..3c6d9bee20 100644
--- a/mobile/apps/photos/lib/db/upload_locks_db.dart
+++ b/mobile/apps/photos/lib/db/upload_locks_db.dart
@@ -203,8 +203,8 @@ class UploadLocksDB {
final time =
int.tryParse(row[_uploadLocksTable.columnTime].toString()) ?? 0;
final owner = row[_uploadLocksTable.columnOwner] as String;
- final duration = DateTime.now().millisecondsSinceEpoch - time;
- return "Lock for $id acquired by $owner since ${Duration(milliseconds: duration)}";
+ final duration = DateTime.now().microsecondsSinceEpoch - time;
+ return "Lock for $id acquired by $owner since ${Duration(microseconds: duration)}";
}
Future<bool> isLocked(String id, String owner) async {