Skip to content

Commit

Permalink
fix: add support for petabyte bytesizes
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Apr 26, 2024
1 parent 41e45b7 commit 4e886c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pattern/tokenization/tokenization.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ restore: // should be faster than a defer
return false
}

var byteSizes = [256]bool{'k': true, 'K': true, 'm': true, 'M': true, 'g': true, 'G': true, 't': true, 'T': true}
var byteSizes = [256]bool{'k': true, 'K': true, 'm': true, 'M': true, 'g': true, 'G': true, 't': true, 'T': true, 'p': true, 'P': true}

// Only moves the head forward if it successfully matches a duration
func (r *replacer) advanceBytesize(c1 byte) (matched bool) {
Expand Down

0 comments on commit 4e886c6

Please sign in to comment.