Skip to content

Commit

Permalink
[nasa/nos3#176] Updated MicroSecPerTick to expected 1000000 value;
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucas9 committed Jun 26, 2024
1 parent fbc42c0 commit cc547e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/nos/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ int32 OS_Posix_TimeBaseAPI_Impl_Init(void)
* - This is used internally for reporting accuracy,
* - TicksPerSecond values over 2M will return zero
*/
OS_SharedGlobalVars.MicroSecPerTick =
(1000000 + (OS_SharedGlobalVars.TicksPerSecond / 2)) / OS_SharedGlobalVars.TicksPerSecond;
OS_SharedGlobalVars.MicroSecPerTick = 1000000;
//(1000000 + (OS_SharedGlobalVars.TicksPerSecond / 2)) / OS_SharedGlobalVars.TicksPerSecond;
} while (0);

return return_code;
Expand Down

0 comments on commit cc547e4

Please sign in to comment.