Commit b7a3a016 by trace

fix undefine bug

parent 506d673f
...@@ -510,7 +510,7 @@ async function monitorIfOnline(names) { ...@@ -510,7 +510,7 @@ async function monitorIfOnline(names) {
// 一直在下架状态, 统计下架持续时间 // 一直在下架状态, 统计下架持续时间
status[name] = { status[name] = {
...a, ...a,
offlineDuration: calDuration(moment.now(), (status[name].offlineDate || moment.now())) offlineDuration: calDuration(moment.now(), (status[name] && status[name].offlineDate || moment.now()))
} }
} }
a = status[name] || {} a = status[name] || {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment