Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/net
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: cfif1982/net
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: patch-1
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Mar 12, 2025

  1. Update timeseries.go: if num <= 0

    change condition because if num=0, than inside function ts.extract() will be division by zero.
    cfif1982 authored Mar 12, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d33780d View commit details

Commits on Mar 25, 2025

  1. Update log.Printf

    cfif1982 authored Mar 25, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b22de6d View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 internal/timeseries/timeseries.go
4 changes: 2 additions & 2 deletions internal/timeseries/timeseries.go
Original file line number Diff line number Diff line change
@@ -357,8 +357,8 @@ func (ts *timeSeries) ComputeRange(start, finish time.Time, num int) []Observabl
return nil
}

if num < 0 {
log.Printf("timeseries: num < 0, %v", num)
if num <= 0 {
log.Printf("timeseries: num <= 0, %v", num)
return nil
}