summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2021-05-06 13:56:00 -0700
committerKevin Krakauer <krakauer@google.com>2021-05-06 13:56:00 -0700
commitb8681e6093e5f818c385f83a91be545cc35e07a9 (patch)
treecf051c7ad54cd8e7cb576e6fbce430fa66617d81 /pkg/tcpip/tcpip.go
parenteded0d28de7f62423e496d89fd2699bb02e2744f (diff)
fix rebase error
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index b39af42c4..7e7415df4 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -37,7 +37,6 @@ import (
"reflect"
"strconv"
"strings"
- "sync/atomic"
"time"
"gvisor.dev/gvisor/pkg/atomicbitops"
@@ -1236,7 +1235,7 @@ func (s *StatCounter) Decrement() {
// Value returns the current value of the counter.
func (s *StatCounter) Value(name ...string) uint64 {
- return atomic.LoadUint64(&s.count)
+ return s.count.Load()
}
// IncrementBy increments the counter by v.