Commit 76951126775faf7387ffd0e94f0b741e276e844b

Authored by Adhidarma Hadiwinoto
1 parent c0b0e20575
Exists in master

number

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -80,13 +80,13 @@ function pingAll() {
80 80 }
81 81  
82 82 function getProbeInterval() {
83   - if (!config || !config.globals || !config.globals.probe_interval_secs) { return defaultProbeIntervalSecs * 1000; }
84   - return config.globals.probe_interval_secs * 1000;
  83 + if (!config || !config.globals || !Number(config.globals.probe_interval_secs)) { return defaultProbeIntervalSecs * 1000; }
  84 + return Number(config.globals.probe_interval_secs) * 1000;
85 85 }
86 86  
87 87 function getProbeMaxRandomDelay() {
88   - if (!config || !config.globals || !config.globals.probe_max_random_delay_secs) { return defaultProbeIntervalSecs * 1000; }
89   - return config.globals.probe_max_random_delay_secs * 1000;
  88 + if (!config || !config.globals || !Number(config.globals.probe_max_random_delay_secs)) { return defaultProbeIntervalSecs * 1000; }
  89 + return Number(config.globals.probe_max_random_delay_secs) * 1000;
90 90 }
91 91  
92 92 exports.init = init;