overlay: Fix counting fail

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-08-20 10:58:02 +01:00
parent 5c81cda0ff
commit cf62d52eb4
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)