Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
9fce64c6
Unverified
Commit
9fce64c6
authored
Oct 21, 2020
by
Sofia Papagiannaki
Committed by
GitHub
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: Fix conversion of a 64-bit integer to a lower bit size type uint (#28425)
parent
f3c09e8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pkg/cmd/grafana-server/diagnostics.go
+3
-3
pkg/cmd/grafana-server/main.go
+1
-1
No files found.
pkg/cmd/grafana-server/diagnostics.go
View file @
9fce64c6
...
...
@@ -15,10 +15,10 @@ const (
type
profilingDiagnostics
struct
{
enabled
bool
port
uint
port
uint
64
}
func
newProfilingDiagnostics
(
enabled
bool
,
port
uint
)
*
profilingDiagnostics
{
func
newProfilingDiagnostics
(
enabled
bool
,
port
uint
64
)
*
profilingDiagnostics
{
return
&
profilingDiagnostics
{
enabled
:
enabled
,
port
:
port
,
...
...
@@ -41,7 +41,7 @@ func (pd *profilingDiagnostics) overrideWithEnv() error {
if
parseErr
!=
nil
{
return
fmt
.
Errorf
(
"Failed to parse %s environment variable to unsigned integer"
,
profilingPortEnvName
)
}
pd
.
port
=
uint
(
port
)
pd
.
port
=
port
}
return
nil
...
...
pkg/cmd/grafana-server/main.go
View file @
9fce64c6
...
...
@@ -58,7 +58,7 @@ func main() {
v
=
flag
.
Bool
(
"v"
,
false
,
"prints current version and exits"
)
profile
=
flag
.
Bool
(
"profile"
,
false
,
"Turn on pprof profiling"
)
profilePort
=
flag
.
Uint
(
"profile-port"
,
6060
,
"Define custom port for profiling"
)
profilePort
=
flag
.
Uint
64
(
"profile-port"
,
6060
,
"Define custom port for profiling"
)
tracing
=
flag
.
Bool
(
"tracing"
,
false
,
"Turn on tracing"
)
tracingFile
=
flag
.
String
(
"tracing-file"
,
"trace.out"
,
"Define tracing output file"
)
)
...
...
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