Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278311
b: refs/heads/master
c: fc33cc7
h: refs/heads/master
i:
  278309: 42122a9
  278307: 8b2c0db
  278303: 396b7be
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 1, 2011
1 parent 8bd2cca commit c046171
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8aa953d03eea1190fdde03089947bba09e5399fe
refs/heads/master: fc33cc72423ed3474cd51bc8bd7c1cdc22a78e1a
5 changes: 4 additions & 1 deletion trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ static psched_tdiff_t tabledist(psched_tdiff_t mu, psched_tdiff_t sigma,

static psched_time_t packet_len_2_sched_time(unsigned int len, u32 rate)
{
return PSCHED_NS2TICKS((u64)len * NSEC_PER_SEC / rate);
u64 ticks = (u64)len * NSEC_PER_SEC;

do_div(ticks, rate);
return PSCHED_NS2TICKS(ticks);
}

/*
Expand Down

0 comments on commit c046171

Please sign in to comment.