-
Notifications
You must be signed in to change notification settings - Fork 269
Allow variable suffixes for bandwidth config values #1161
Copy link
Copy link
Closed
Labels
Component: MainComposing the core Shadow executableComposing the core Shadow executableType: EnhancementNew functionality or improved designNew functionality or improved design
Description
Currently, Shadow interprets the values given in the bandwidthup and bandwidthdown config attributes as KiB/s.
Lines 376 to 377 in 482458a
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: MainComposing the core Shadow executableComposing the core Shadow executableType: EnhancementNew functionality or improved designNew functionality or improved design