Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.18 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.18 KB
  • infos = Information about the unit plugin is in keys below
  • infos/author = Marcel Hauri [email protected]
  • infos/licence = BSD
  • infos/needs =
  • infos/provides =
  • infos/recommends =
  • infos/placements = presetstorage postgetstorage
  • infos/status = recommended productive maintained reviewed conformant compatible coverage specific unittest tested libc final
  • infos/metadata = check/unit
  • infos/description = validates units of memory and normalizes to bytes

Validation options

The following representation standards of units are currently supported and can be used by setting check/unit:

  • <numeric value><one or more spaces><memory unit>

    e.g. 20 MB, 256 KB

Normalization

The following representation standards of units are currently supported and can be use by setting check/unit to:

  • <numeric value><one or more spaces><memory unit>

    e.g. 20 MB, 256 KB, the value then will be normalized to bytes

Examples

e.g. 20 KB will become 20000 Bytes

Limitations

Only basic units are supported (everthing from Bytes to Petabytes, but no KiB, MiB or Gib) The max value is limited by the capacity of unsigned Longs. Using greater values will result in an error.