Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
fix(client): send datapointadded event properly
Browse files Browse the repository at this point in the history
  • Loading branch information
paralin committed Sep 14, 2016
1 parent 615079b commit f3836c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/metric-stream-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export class MetricStreamClient {
let idx = _.sortedIndex(subData.timestamps, datapoint.timestamp);
subData.timestamps.splice(idx, 0, datapoint.timestamp);
subData.datapoints.splice(idx, 0, datapoint);
subData.datapointAdded.next(datapoint);
}

// Remove a datapoint
Expand Down

0 comments on commit f3836c8

Please sign in to comment.