Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/lib/services/background_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ Future<void> checkNodeStatus(String taskId) async {
}

Duration _getCheckInterval(Duration downtime) {
if (downtime < const Duration(hours: 1)) {
return const Duration(minutes: 15); // 0-1 hour: check every 15 min
if (downtime < const Duration(hours: 2)) {
return const Duration(minutes: 15); // 0-2 hour: check every 15 min
} else if (downtime < const Duration(hours: 4)) {
return const Duration(hours: 1); // 1-4 hours: check every hour
return const Duration(hours: 1); // 2-4 hours: check every hour
} else if (downtime < const Duration(hours: 24)) {
return const Duration(hours: 4); // 4-24 hours: check every 4 hours
} else if (downtime < const Duration(days: 3)) {
Expand Down