Skip to content

Commit

Permalink
fix netem setting
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Mar 7, 2024
1 parent 8b6aed3 commit b22fed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ sudo tc filter add dev ${device} \
handle ${handle}: \
netem \
${rate && rate > 0 ? `rate ${rate}kbit` : ''} \
${delay && delay > 0 ? `delay ${delay}ms` : ''} \
loss ${loss}% \
${delay && delay >= 0 ? `delay ${delay}ms` : ''} \
${loss && loss >= 0 ? `loss ${delay}%` : ''} \
limit ${limit}; \
`
try {
Expand Down

0 comments on commit b22fed1

Please sign in to comment.