mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-19 04:34:33 -05:00
chore: fix some typos in comments (#4679)
Signed-off-by: CoolCu <coolcui@qq.com>
This commit is contained in:
parent
05606c69e7
commit
b25ac55a2f
@ -1573,7 +1573,7 @@ class Monitor extends BeanModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unlinks all children of the the group monitor
|
* Unlinks all children of the group monitor
|
||||||
* @param {number} groupID ID of group to remove children of
|
* @param {number} groupID ID of group to remove children of
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
|
@ -513,7 +513,7 @@ class UptimeCalculator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Flat status to UP or DOWN
|
* Flat status to UP or DOWN
|
||||||
* @param {number} status the status which schould be turned into a flat status
|
* @param {number} status the status which should be turned into a flat status
|
||||||
* @returns {UP|DOWN|PENDING} The flat status
|
* @returns {UP|DOWN|PENDING} The flat status
|
||||||
* @throws {Error} Invalid status
|
* @throws {Error} Invalid status
|
||||||
*/
|
*/
|
||||||
@ -594,7 +594,7 @@ class UptimeCalculator {
|
|||||||
totalPing += data.avgPing * data.up;
|
totalPing += data.avgPing * data.up;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set key to the pervious time period
|
// Set key to the previous time period
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "day":
|
case "day":
|
||||||
key -= 86400;
|
key -= 86400;
|
||||||
@ -721,7 +721,7 @@ class UptimeCalculator {
|
|||||||
result.push(data);
|
result.push(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set key to the pervious time period
|
// Set key to the previous time period
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "day":
|
case "day":
|
||||||
key -= 86400;
|
key -= 86400;
|
||||||
|
@ -323,7 +323,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show success or error toast dependant on response status code
|
* Show success or error toast dependent on response status code
|
||||||
* @param {object} res Response object
|
* @param {object} res Response object
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
|
@ -550,7 +550,7 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* Return the correct title for the ping stat
|
* Return the correct title for the ping stat
|
||||||
* @param {boolean} average Is the statistic an average?
|
* @param {boolean} average Is the statistic an average?
|
||||||
* @returns {string} Title formatted dependant on monitor type
|
* @returns {string} Title formatted dependent on monitor type
|
||||||
*/
|
*/
|
||||||
pingTitle(average = false) {
|
pingTitle(average = false) {
|
||||||
let translationPrefix = "";
|
let translationPrefix = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user