Skip to content

Commit

Permalink
valid range of "Maximum RAM Percentage" parameter in Validate plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jun 29, 2024
1 parent ea38d17 commit 032d4ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)

## [Unreleased] 2024-06-28

### Fixed

- valid range of "Maximum RAM Percentage" parameter in Validate plugin (1-100)

## [1.0.0alpha3] 2024-06-28

Expand Down
2 changes: 1 addition & 1 deletion cmem_plugin_reason/plugin_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__( # noqa: PLR0913
validate_filename(md_filename)
except: # noqa: E722
errors += "Invalid filename for parameter Output filename. "
if max_ram_percentage not in range(1, 100):
if max_ram_percentage not in range(1, 101):
errors += "Invalid value for parameter Maximum RAM Percentage. "
if errors:
raise ValueError(errors[:-1])
Expand Down

0 comments on commit 032d4ef

Please sign in to comment.