Skip to content

Commit dc94c35

Browse files
committedAug 31, 2017
Unbreak traffic shaper in the fault injector.
1 parent 017210e commit dc94c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/phy/fault_injector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl State {
4848
}
4949

5050
fn refill(&mut self, config: &Config, timestamp: u64) {
51-
if self.refilled_at - timestamp > config.interval {
51+
if timestamp - self.refilled_at > config.interval {
5252
self.tx_bucket = config.max_tx_rate;
5353
self.rx_bucket = config.max_rx_rate;
5454
self.refilled_at = timestamp;

0 commit comments

Comments
 (0)
Please sign in to comment.