From 6178d99993686a75c2962c8cf8160763253c8e63 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Fri, 4 Aug 2017 14:05:14 -0400 Subject: [PATCH] Modify percentage type to float64 --- pkg/api/types.go | 2 +- pkg/api/v1alpha1/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/types.go b/pkg/api/types.go index 5cd936003..7339e3535 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -52,7 +52,7 @@ type StrategyParameters struct { NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds } -type Percentage int +type Percentage float64 type ResourceThresholds map[v1.ResourceName]Percentage type NodeResourceUtilizationThresholds struct { diff --git a/pkg/api/v1alpha1/types.go b/pkg/api/v1alpha1/types.go index 70cf52889..fd95df7ec 100644 --- a/pkg/api/v1alpha1/types.go +++ b/pkg/api/v1alpha1/types.go @@ -52,7 +52,7 @@ type StrategyParameters struct { NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds `json:"nodeResourceUtilizationThresholds,omitempty"` } -type Percentage int +type Percentage float64 type ResourceThresholds map[v1.ResourceName]Percentage type NodeResourceUtilizationThresholds struct {