aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorWafflespeanut <wafflespeanut@gmail.com>2015-06-05 21:57:19 +0530
committerWafflespeanut <wafflespeanut@gmail.com>2015-06-05 21:57:19 +0530
commit1612f723a89a44dd12d833ec7cc97f2473df02c6 (patch)
tree600c8a4cb3aaa1e69ebf31f4a7914d41efe37c20 /components
parentad5846f2e14ac15aca9f561975ae9476d0f13244 (diff)
downloadservo-1612f723a89a44dd12d833ec7cc97f2473df02c6.tar.gz
servo-1612f723a89a44dd12d833ec7cc97f2473df02c6.zip
Timestamp fix for issue #5690
Diffstat (limited to 'components')
-rw-r--r--components/script/dom/performance.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs
index d9dd8472d74..dcb5dd290e9 100644
--- a/components/script/dom/performance.rs
+++ b/components/script/dom/performance.rs
@@ -51,7 +51,7 @@ impl<'a> PerformanceMethods for JSRef<'a, Performance> {
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html#dom-performance-now
fn Now(self) -> DOMHighResTimeStamp {
let navStart = self.timing.root().r().NavigationStartPrecise();
- let now = (time::precise_time_ns() as f64 - navStart) * 1000000 as f64;
+ let now = (time::precise_time_ns() as f64 - navStart) / 1000000 as f64;
Finite::wrap(now)
}
}