Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extra time units in delay specification #86

Closed
dastergon opened this issue Aug 25, 2017 · 4 comments
Closed

Support extra time units in delay specification #86

dastergon opened this issue Aug 25, 2017 · 4 comments
Assignees

Comments

@dastergon
Copy link
Contributor

dastergon commented Aug 25, 2017

At the moment when using the --delay option in tcset, you can only set time to milliseconds. According to the tc man page , it supports microseconds and seconds too. It would be great to have support for those time units plus minutes which could be easily converted to one of the supported time units.

Examples:

e.g. Set 100ms network latency

# tcset --device eth0 --delay 100ms

e.g. Set 100s network latency

# tcset --device eth0 --delay 100s

e.g. Set 1m network latency

# tcset --device eth0 --delay 1m

Thanks,
Pavlos

@thombashi
Copy link
Owner

Thank you for your suggestion.

That surely makes more easy to set delay time.
I will consider that feature for the next release.

@thombashi
Copy link
Owner

@dastergon
I've added support for time units at tcconfig 0.15.0.
Now, you can use the following time units:

us/usec/usecs/microsecond/microseconds
ms/msec/msecs/millisecond/milliseconds
s/sec/secs/second/seconds
m/min/mins/minute/minutes

@dastergon
Copy link
Contributor Author

@thombashi thanks for the quick update! I tested it and works as expected!

@thombashi
Copy link
Owner

Thank you for testing.
I'll close the issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants