mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 14:08:02 +08:00
Apply suggestions from code review
Addresses: -https://github.com/louislam/uptime-kuma/pull/4717#discussion_r1589805237 -https://github.com/louislam/uptime-kuma/pull/4717#discussion_r1589806199 -https://github.com/louislam/uptime-kuma/pull/4717#discussion_r1589853470 -https://github.com/louislam/uptime-kuma/pull/4717#discussion_r1589854032
This commit is contained in:
@@ -1320,11 +1320,13 @@ message HealthCheckResponse {
|
||||
}
|
||||
}
|
||||
|
||||
// Set default timeout
|
||||
// Set a default timeout of 1 second for SNMP monitors when querying a single OID.
|
||||
// Since we're only querying a single OID, a shorter timeout is sufficient to ensure timely responses
|
||||
// without unnecessary delays. This helps keep the monitoring process lightweight and efficient.
|
||||
if (this.monitor.type === "snmp") {
|
||||
this.monitor.timeout = 1;
|
||||
} else {
|
||||
this.monitor.timeout = 48;
|
||||
this.monitor.timeout = 48; // Default timeout for other monitor types
|
||||
}
|
||||
|
||||
// Set default SNMP version
|
||||
|
Reference in New Issue
Block a user