Procházet zdrojové kódy

fixes #1560

(cherry picked from commit d3230bbc38)
tags/v0.8.0
Shaun před 3 roky
committed by Big Bad Waffle
rodič
revize
bacc3da473
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. +7
    -2
      src/server/misc/scheduler.js

+ 7
- 2
src/server/misc/scheduler.js Zobrazit soubor

@@ -27,8 +27,13 @@ module.exports = {

if (f.length === 1) {
f = f[0].split('/');
if (f.length === 1)
return (useTime === ~~f[0]);
if (f.length === 1) {
const options = f[0].split(',');
const isOk = options.some(o => {
return ~~o === useTime;
});
return isOk;
}
return ((useTime % f[1]) === 0);
}
return ((useTime >= f[0]) && (useTime <= f[1]));


Načítá se…
Zrušit
Uložit