Skip to content

Commit

Permalink
Merge pull request #395 from vitus133/fix-gm-states-release-4.17-2
Browse files Browse the repository at this point in the history
OCPBUGS-47709: [release-4.17] fix backport mistake
  • Loading branch information
vitus133 authored Dec 31, 2024
2 parents 5b9914b + b8e8f58 commit bdcc02b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion plugins/ptp_operator/metrics/logparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ func (p *PTPEventManager) ParseGMLogs(processName, configName, output string, fi
SyncState.With(map[string]string{"process": processName, "node": ptpNodeName, "iface": alias}).Set(GetSyncStateID(syncState))
// status metrics
ptpStats[masterType].SetPtpDependentEventState(clockState, ptpStats.HasMetrics(processName), ptpStats.HasMetricHelp(processName))
ptpStats[masterType].SetLastSyncState(clockState.State)
ptpStats[masterType].SetAlias(alias)

// If GM is locked/Freerun/Holdover then ptp state change event
Expand Down
1 change: 1 addition & 0 deletions plugins/ptp_operator/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ var testCases = []TestCase{
expectedNmeaStatus: SKIP,
expectedPpsStatus: SKIP,
expectedClockClassMetrics: SKIP,
expectedEvent: ptp.PtpStateChange,
},
{
log: "gnss[1000000500]:[ts2phc.0.config] ens2f1 gnss_status 3 offset 5 s2",
Expand Down

0 comments on commit bdcc02b

Please sign in to comment.