Skip to content

Commit cf87471

Browse files
authored
fix: metics length 0 bug (#3)
1 parent 340e54a commit cf87471

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ class SlsMonitor {
315315
const tlen = result.Response.DataPoints[0].Timestamps.length
316316
const values = result.Response.DataPoints[0].Values
317317
let total = []
318-
// let timestamp = 0
318+
if (tlen == 0) {
319+
return
320+
}
319321

320322
const p95 = []
321323
const p50 = []

0 commit comments

Comments
 (0)