Skip to content

bend-cache accepts blank and non-finite --min-ms durations #2314

Backlog

Description

@oxura

What you did

Ran bend-cache m.bend --min-ms ' ' --stats with a new cache file, then tried --min-ms Infinity with another new cache file.

What happened

Both runs exit 0. The blank string is coerced to zero and keeps all 544 traces for this tiny file; Infinity keeps none. Neither is a millisecond duration. An accidentally blank shell variable should not switch caching to a different policy.

bend --version

2.0.40, main at 966bbb74.

uname -sm

Linux x86_64.

clang --version (the first line)

clang version 22.1.8 (not used; reproduced with Bun 1.4.4).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions