Skip to content

Commit

Permalink
Remove unuseful prints
Browse files Browse the repository at this point in the history
  • Loading branch information
MircoT committed Jun 22, 2020
1 parent 5ffff38 commit 62b2dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SmartCache/sim/cache/ai/featuremap/featuremap.go
Expand Up @@ -161,15 +161,15 @@ func (manager *FeatureManager) Populate(featureMapFilePath string) {

switch curStruct.Type {
case "int":
fmt.Println(reflect.TypeOf(bucketValues[0]).Kind())
// fmt.Println("int", reflect.TypeOf(bucketValues[0]).Kind())
curStruct.ReflectType = reflect.Int64
curStruct.Int64Values = make([]int64, len(bucketValues))
for idx, val := range bucketValues {
curStruct.Int64Values[idx] = int64(val.(float64)) // numbers from JSON are always floats
}
curStruct.Int64Values = append(curStruct.Int64Values, math.MaxInt64)
case "float":
fmt.Println(reflect.TypeOf(bucketValues[0]).Kind())
// fmt.Println("float", reflect.TypeOf(bucketValues[0]).Kind())
curStruct.ReflectType = reflect.Float64
curStruct.Float64Values = make([]float64, len(bucketValues))
for idx, val := range bucketValues {
Expand Down

0 comments on commit 62b2dbc

Please sign in to comment.