Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-flow-metrics
Commits
7e5a55af
Unverified
Commit
7e5a55af
authored
Sep 06, 2018
by
Steven Allen
Committed by
GitHub
Sep 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from KerwinKoo/master
Just repair spelling mistake
parents
3b3bcfcf
a88bdab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sweeper.go
sweeper.go
+1
-1
No files found.
sweeper.go
View file @
7e5a55af
...
@@ -128,7 +128,7 @@ func (sw *sweeper) update() {
...
@@ -128,7 +128,7 @@ func (sw *sweeper) update() {
// Remove the snapshot total, it'll get added back on
// Remove the snapshot total, it'll get added back on
// registration.
// registration.
//
//
// `^uint64(total - 1)` is the two's compl
i
ment of
// `^uint64(total - 1)` is the two's compl
e
ment of
// `total`. It's the "correct" way to subtract
// `total`. It's the "correct" way to subtract
// atomically in go.
// atomically in go.
atomic
.
AddUint64
(
&
m
.
accumulator
,
^
uint64
(
m
.
snapshot
.
Total
-
1
))
atomic
.
AddUint64
(
&
m
.
accumulator
,
^
uint64
(
m
.
snapshot
.
Total
-
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment