Skip to content

Commit

Permalink
Fix the timeout value (#5352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionys320 authored Nov 19, 2024
1 parent 8a432ac commit 4228dd0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pages/EditMonitor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1443,11 +1443,14 @@ message HealthCheckResponse {
}
}
if (this.monitor.type === "snmp") {
// Set a default timeout if the monitor type has changed or if it's a new monitor
if (oldType || this.isAdd) {
if (this.monitor.type === "snmp") {
// snmp is not expected to be executed via the internet => we can choose a lower default timeout
this.monitor.timeout = 5;
} else {
this.monitor.timeout = 48;
this.monitor.timeout = 5;
} else {
this.monitor.timeout = 48;
}
}
// Set default SNMP version
Expand Down

0 comments on commit 4228dd0

Please sign in to comment.