[chrony-dev] [Git][chrony/chrony][master] 7 commits: test: make 007-cmdmon test even more reliable

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Title: GitLab

Miroslav Lichvar pushed to branch master at chrony / chrony

Commits:

  • a0f46056
    by Miroslav Lichvar at 2025-11-04T14:44:09+01:00
    test: make 007-cmdmon test even more reliable
    
    The last hit value in the clients report may be "-", because there is
    a backward step of the clock caused by the doffset and reset sources
    commands.
    
  • 5436618c
    by Miroslav Lichvar at 2025-11-04T14:47:35+01:00
    sourcestats: drop disabled code in SST_GetSelectionData()
    
  • 4659b574
    by Miroslav Lichvar at 2025-11-04T14:47:35+01:00
    sourcestats: change ST_GetSelectionData() to return status directly
    
    For better consistency, indicate success (usable data) by returning 1
    instead of setting a pointer parameter.
    
  • c8a9ca4c
    by Miroslav Lichvar at 2025-11-04T14:47:35+01:00
    sources: don't save SST_GetSelectionData() status
    
    There is no need to save the SST_GetSelectionData() "select_ok" status
    as the source is immediately marked as SRC_BAD_STATS if it is not ok.
    Nothing else is using this information.
    
  • c252e52e
    by Miroslav Lichvar at 2025-11-04T14:47:35+01:00
    sources: rename min_stratum in SRC_SelectSource()
    
    Rename the variable to min_sel_stratum to make it more specific and
    avoid shadowing a variable that will be added in the next commit.
    
  • 2da8fbc4
    by Miroslav Lichvar at 2025-11-04T14:47:35+01:00
    sources: add configurable limits for stratum
    
    Add minstratum and maxstratum directives to specify the minimum and
    maximum allowed stratum of sources to be selected. The default values
    are 0 and 15 respectively, allowing all NTP sources and refclocks.
    
    Sources that are rejected due to having too large or too small stratum
    are marked with 'r' in the selection log and selectdata report.
    
    This is similar to the "tos floor" and "tos ceiling" settings of ntpd,
    except that maxstratum is interpreted as one below the ceiling.
    
  • 6fe4a60a
    by Miroslav Lichvar at 2025-11-04T14:47:35+01:00
    client: fix typo in selectdata help text
    

10 changed files:



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/