9cfec642cc3563dcd39eda7eaa6ee17345ce2e85
compute/one-liners.md
| ... | ... | @@ -14,7 +14,7 @@ Only if you trust your environment, mind. |
| 14 | 14 | `for i in ${!ARR[@]}; do echo ${ARR[$i]}; done` |
| 15 | 15 | |
| 16 | 16 | ### Restrict outgoing bandwidth on Linux |
| 17 | -`burst` is ((<rate in bits/s> / <kernel tick hz>) * 8) |
|
| 17 | +`burst` is ((<rate in bits/s> / <kernel tick hz>) / 8) |
|
| 18 | 18 | `latency` is the amount of data to queue before dropping traffic |
| 19 | 19 | `tc qdisc add dev bond1 root tbf rate 4.5gbit burst 562500 latency 100ms` |
| 20 | 20 | Remove: |