aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index a9624cd86..ee8763e84 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -136,7 +136,7 @@ func LoopPushingMetric(name, instance string, gatherer *prometheus.Registry, fnG
}
}
-func SourceName(port int) string {
+func SourceName(port uint32) string {
hostname, err := os.Hostname()
if err != nil {
return "unknown"