Skip to content

Allow variable suffixes for bandwidth config values #1161

@robgjansen

Description

@robgjansen

Currently, Shadow interprets the values given in the bandwidthup and bandwidthdown config attributes as KiB/s.

params->requestedBWDownKiBps = he->bandwidthdown.isSet ? he->bandwidthdown.integer : 0;
params->requestedBWUpKiBps = he->bandwidthup.isSet ? he->bandwidthup.integer : 0;

We should do something like TGen does in it's tgenoptionparser_parseBytes function, where

  • a raw integer is interpreted as bytes, and
  • a suffix can be given to instruct Shadow how to interpret the config value.

Metadata

Metadata

Assignees

Labels

Component: MainComposing the core Shadow executableType: EnhancementNew functionality or improved design

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions