Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
c667f818
Commit
c667f818
authored
May 10, 2018
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
telemetry: Use int64 constant for duration interval
Otherwise it overflows int type on 32-bit builds
parent
b321c00a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
telemetry/telemetry.go
telemetry/telemetry.go
+1
-1
No files found.
telemetry/telemetry.go
View file @
c667f818
...
...
@@ -209,7 +209,7 @@ func emit(final bool) error {
// ensure we won't slam the telemetry server; add a little variance
if
reply
.
NextUpdate
<
1
*
time
.
Second
{
reply
.
NextUpdate
=
defaultUpdateInterval
+
time
.
Duration
(
rand
.
Int
n
(
int
(
1
*
time
.
Minute
)))
reply
.
NextUpdate
=
defaultUpdateInterval
+
time
.
Duration
(
rand
.
Int
63n
(
int64
(
1
*
time
.
Minute
)))
}
// schedule the next update (if this wasn't the last one and
...
...
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