diff options
Diffstat (limited to 'EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c')
-rw-r--r-- | EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c b/EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c index 74e72bd48b..5c13ed4cf1 100644 --- a/EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c +++ b/EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c @@ -202,14 +202,14 @@ LibGetTime ( // Because we use the performance counter, we can fill the Nanosecond attribute
// provided that the remainder doesn't overflow 64-bit during multiplication.
if (Remainder <= 18446744073U) {
- Time->Nanosecond = MultU64x64 (Remainder, 1000000000U) / Freq;
+ Time->Nanosecond = (UINT32)(MultU64x64 (Remainder, 1000000000U) / Freq);
} else {
DEBUG ((DEBUG_WARN, "LibGetTime: Nanosecond value not set (64-bit overflow).\n"));
}
if (Capabilities) {
Capabilities->Accuracy = 0;
- Capabilities->Resolution = Freq;
+ Capabilities->Resolution = 1;
Capabilities->SetsToZero = FALSE;
}
|