Skip to content

Commit

Permalink
[nasa/nos3#176] Revert previous for what is default from posix and de…
Browse files Browse the repository at this point in the history
…fine ticks per seconds in utnos3.h;
  • Loading branch information
jlucas9 committed Jun 26, 2024
1 parent cc547e4 commit 452824c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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;
//(1000000 + (OS_SharedGlobalVars.TicksPerSecond / 2)) / OS_SharedGlobalVars.TicksPerSecond;
OS_SharedGlobalVars.MicroSecPerTick =
(1000000 + (OS_SharedGlobalVars.TicksPerSecond / 2)) / OS_SharedGlobalVars.TicksPerSecond;
} while (0);

return return_code;
Expand Down
2 changes: 1 addition & 1 deletion ut_assert/inc/utnos3.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define NE_SimTime int32_t

NE_Bus *CFE_PSP_Bus;
int64_t CFE_PSP_ticks_per_second;
int64_t CFE_PSP_ticks_per_second = 100;
pthread_mutex_t CFE_PSP_sim_time_mutex;
NE_SimTime CFE_PSP_sim_time;

Expand Down

0 comments on commit 452824c

Please sign in to comment.