HdrHistogram_rust icon indicating copy to clipboard operation
HdrHistogram_rust copied to clipboard

More flexible subtraction logic

Open marshallpierce opened this issue 7 years ago • 1 comments

There are two reasonable things to do when subtracting a count that exceeds the minuend count: saturate at 0, or error. It would be nice to let the user do both.

See https://github.com/jonhoo/hdrsample/pull/34/files#diff-b4aea3e418ccdb71239b96952d9cddb6R558 for more context.

marshallpierce avatar Mar 15 '17 17:03 marshallpierce

See especially https://github.com/jonhoo/hdrsample/pull/34#discussion_r106214179

jonhoo avatar Mar 15 '17 18:03 jonhoo