Auto merge of #6011 - pcwalton:ns_to_ms, r=jdm

r? @jdm (or whoever)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6011)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-11 16:53:32 -05:00
commit 885068207f

View file

@ -60,7 +60,7 @@ impl ScrollingTimer {
Ok(ToScrollingTimerMsg::ScrollEventProcessedMsg(timestamp)) => {
let target = timestamp as i64 + TIMEOUT;
let delta_ns = target - (time::precise_time_ns() as i64);
sleep_ms((delta_ns / 1000) as u32);
sleep_ms((delta_ns / 1000000) as u32);
self.compositor_proxy.send(Msg::ScrollTimeout(timestamp));
}
Ok(ToScrollingTimerMsg::ExitMsg) | Err(_) => break,