mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 08:56:11 +00:00
overlay: Fix counting fail
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5c81cda0ff
commit
cf62d52eb4
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user