Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions traffic_monitor/cache/stats_over_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,11 @@ func parseInterfaces(stats map[string]interface{}) map[string]Interface {
}
speed = int64(value.(float64))
case string:
if statVal, err := strconv.ParseInt(value.(string), 10, 64); err != nil {
if statVal, err := strconv.ParseUint(value.(string), 10, 64); err != nil {
log.Warnf("speed of interface '%s' cannot parse to int64, was '%v': %v", statParts[0], value, err)
continue
} else {
speed = statVal
speed = int64(statVal)
}
default:
log.Warnf("speed for interface '%s' had unrecognized type '%T'", statParts[0], t)
Expand Down