Skip to content

Commit

Permalink
apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
housengw committed Apr 27, 2022
1 parent b8fb84c commit f0339dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion org.lflang/src/lib/c/reactor-c
4 changes: 2 additions & 2 deletions test/C/src/federated/ClockSync.lf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ reactor Printer {
input in:int;

reaction(startup) {=
interval_t offset = _lf_global_physical_clock_offset + _lf_global_test_physical_clock_offset;
interval_t offset = _lf_time_physical_clock_offset + _lf_time_test_physical_clock_offset;
info_print("Clock sync error at startup is %lld ns.", offset);
=}

Expand All @@ -54,7 +54,7 @@ reactor Printer {
=}

reaction(shutdown) {=
interval_t offset = _lf_global_physical_clock_offset + _lf_global_test_physical_clock_offset;
interval_t offset = _lf_time_physical_clock_offset + _lf_time_test_physical_clock_offset;
info_print("Clock sync error at shutdown is %lld ns.", offset);
// Error out if the offset is bigger than 100 msec.
if (offset > MSEC(100)) {
Expand Down

0 comments on commit f0339dc

Please sign in to comment.