mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-15 07:03:00 +02:00
Add uint64 to float64 cast option
This commit is contained in:
@@ -49,6 +49,8 @@ func intToFloat64(input interface{}) (float64, error) {
|
||||
return float64(value), nil
|
||||
case int64:
|
||||
return float64(value), nil
|
||||
case uint64:
|
||||
return float64(value), nil
|
||||
}
|
||||
return 0, errors.New("cannot cast value to float64")
|
||||
}
|
||||
|
Reference in New Issue
Block a user