Skip to content

Commit

Permalink
fix value:0
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Oct 29, 2024
1 parent 5d642c1 commit 5635650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlers/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function processStream (stream, labels, bulkLabels, bulk, toJSON, fingerPrint) {
values.push([
finger,
ts,
(typeof entry.value === 'undefined') ? null : entry.value,
(typeof entry.value !== 'number') ? 0 : entry.value,
entry.line || '',
type === 3 ? bothType : type
])
Expand All @@ -98,7 +98,7 @@ function processStream (stream, labels, bulkLabels, bulk, toJSON, fingerPrint) {
values.push([
finger,
BigInt(value[0]),
(typeof value[2] === 'undefined') ? null : value[2],
(typeof value[2] !== 'number') ? 0 : value[2],
value[1] || '',
type === 3 ? bothType : type
])
Expand Down

0 comments on commit 5635650

Please sign in to comment.