From a6c7e2b69b35bf8ad54e2204468b363037043792 Mon Sep 17 00:00:00 2001 From: Andrea Falzetti Date: Fri, 12 Aug 2022 09:55:54 +0000 Subject: [PATCH] chore(gitpod-cli): align thresholds with jetbrains --- components/gitpod-cli/cmd/top.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/gitpod-cli/cmd/top.go b/components/gitpod-cli/cmd/top.go index fae7912ba0f639..b3400ecc0c7015 100644 --- a/components/gitpod-cli/cmd/top.go +++ b/components/gitpod-cli/cmd/top.go @@ -45,11 +45,12 @@ func outputTable(workspaceResources *supervisor.ResourcesStatusResponse) { table.Render() } +// TODO: retrieve thresholds from supervisor once we implement this: https://github.com/gitpod-io/gitpod/issues/12075 func getColor(value int64) int { switch { - case value >= 85: + case value >= 95: return tablewriter.FgRedColor - case value >= 65: + case value >= 80: return tablewriter.FgYellowColor default: return tablewriter.FgHiGreenColor