mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-17 09:05:56 +00:00
updated comments and ran linter on inferDuration
This commit is contained in:
parent
4836f72cb8
commit
30f7b48987
1 changed files with 4 additions and 4 deletions
|
@ -313,9 +313,9 @@ class Maintenance extends BeanModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the maintenance duration
|
* Calculate the maintenance duration
|
||||||
* @returns {number}
|
* @param {number} customDuration - The custom duration in milliseconds.
|
||||||
|
* @returns {number} The inferred duration in milliseconds.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
inferDuration(customDuration) {
|
inferDuration(customDuration) {
|
||||||
// Check if duration is still in the window. If not, use the duration from the current time to the end of the window
|
// Check if duration is still in the window. If not, use the duration from the current time to the end of the window
|
||||||
if (customDuration > 0) {
|
if (customDuration > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue