Skip to content

Commit

Permalink
fix: typo (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Oct 8, 2023
1 parent cca6221 commit f059fb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/plot/hist.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func downsampleBuckets(h *metrics.Float64Histogram, factor int) []float64 {

// downsampleCounts downsamples the counts in the provided histogram, using the
// given factor. Every 'factor' buckets are merged into one, larger, bucket. If
// the number of buckets is not divisible by 'factor', then an addtional last
// the number of buckets is not divisible by 'factor', then an additional last
// bucket will contain the sum of the counts in all relainbing buckets.
//
// Note: slice should be a slice of maxBuckets elements, so that it can be
Expand Down
4 changes: 2 additions & 2 deletions internal/static/js/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class Buffer {
}
push(pt) {
if (this._pos >= this._cap) {
// move data to the beggining of the buffer, effectively discarding
// move data to the beginning of the buffer, effectively discarding
// the cap-len oldest elements
this._buf.copyWithin(0, this._cap - this._len);
this._pos = this._len;
Expand All @@ -43,4 +43,4 @@ export default class Buffer {
let start = this._pos - len;
return this._buf.slice(start, start + len);
}
};
};

0 comments on commit f059fb0

Please sign in to comment.