Elektra  0.9.1
Plugin: unit
  • infos = Information about the unit plugin is in keys below
  • infos/author = Marcel Hauri e1355.nosp@m.940@.nosp@m.stude.nosp@m.nt.t.nosp@m.uwien.nosp@m..ac..nosp@m.at
  • 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

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

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

e.g. 20 KB will become 20000 Bytes

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.