Skip to content

Commit

Permalink
rename duration and time setters for netsample struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Samokhin committed Sep 6, 2024
1 parent 5c920fc commit cbbb040
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/aggregator/netsample/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (s *Sample) SetUserDuration(d time.Duration) {
s.setDuration(keyRTTMicro, d)
}

func (s *Sample) GetUserDurationMilliseconds() int {
func (s *Sample) GetUserDurationMicroseconds() int {
return s.get(keyRTTMicro)
}
func (s *Sample) SetUserProto(code int) {
Expand All @@ -113,31 +113,31 @@ func (s *Sample) SetConnectTime(d time.Duration) {
s.setDuration(keyConnectMicro, d)
}

func (s *Sample) GetConnectTime() int {
func (s *Sample) GetConnectTimeMicroseconds() int {
return s.get(keyConnectMicro)
}

func (s *Sample) SetSendTime(d time.Duration) {
s.setDuration(keySendMicro, d)
}

func (s *Sample) GetSendTime() int {
func (s *Sample) GetSendTimeMicroseconds() int {
return s.get(keySendMicro)
}

func (s *Sample) SetLatency(d time.Duration) {
s.setDuration(keyLatencyMicro, d)
}

func (s *Sample) GetLatency() int {
func (s *Sample) GetLatencyMicroseconds() int {
return s.get(keyLatencyMicro)
}

func (s *Sample) SetReceiveTime(d time.Duration) {
s.setDuration(keyReceiveMicro, d)
}

func (s *Sample) GetReceiveTime() int {
func (s *Sample) GetReceiveTimeMicroseconds() int {
return s.get(keyReceiveMicro)
}

Expand Down

0 comments on commit cbbb040

Please sign in to comment.