Skip to content

Commit

Permalink
Fix typo in code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnotoole committed Sep 23, 2024
1 parent eb638ca commit 65508cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmp/morpheus_datasource_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (m *morpheusBroker) Read(ctx context.Context, d *utils.Data, meta interface

// Convert the Unix timestamp to Duration in seconds expressed as a string
validDuration := time.Until(time.UnixMilli(morpheusDetails.ValidTill))
// We do the following since this we cannot get a string representation of a Duration in seconds
// We do the following since we cannot get a string representation of a Duration in seconds
validSeconds := validDuration.Round(time.Second).Seconds() // Round to the nearest second, in float64
validSecondsString := fmt.Sprintf("%ss", strconv.FormatFloat(validSeconds, 'f', -1, 64))

Expand Down

0 comments on commit 65508cd

Please sign in to comment.