summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-20 10:58:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-20 10:58:02 +0100
commitcf62d52eb414db54c7dd8c78e3052fbad30f94fb (patch)
tree78c450a28401437915b93eea0ff4816f77271088 /overlay
parent5c81cda0ff092a13c6a1eb24149e7bf98e7242fa (diff)
overlay: Fix counting fail
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay')
-rw-r--r--overlay/power.c2
-rw-r--r--overlay/rc6.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/overlay/power.c b/overlay/power.c
index 68470a2c..c7ca85cc 100644
--- a/overlay/power.c
+++ b/overlay/power.c
@@ -57,7 +57,7 @@ static uint64_t clock_ms_to_u64(void)
if (clock_gettime(CLOCK_MONOTONIC, &tv) < 0)
return 0;
- return (uint64_t)tv.tv_sec * 1000 + tv.tv_nsec / 10000000;
+ return (uint64_t)tv.tv_sec * 1000 + tv.tv_nsec / 1000000;
}
int power_update(struct power *power)
diff --git a/overlay/rc6.c b/overlay/rc6.c
index 54e8594d..4bece6c0 100644
--- a/overlay/rc6.c
+++ b/overlay/rc6.c
@@ -50,7 +50,7 @@ static uint64_t clock_ms_to_u64(void)
if (clock_gettime(CLOCK_MONOTONIC, &tv) < 0)
return 0;
- return (uint64_t)tv.tv_sec * 1000 + tv.tv_nsec / 10000000;
+ return (uint64_t)tv.tv_sec * 1000 + tv.tv_nsec / 1000000;
}
int rc6_update(struct rc6 *rc6)