summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
index d55f64a..25486f1 100644
--- a/helpers.go
+++ b/helpers.go
@@ -118,3 +118,9 @@ func HumanFormatBytes(b int64) string {
tb := int(b / (1024 * 1024 * 1024 * 1024))
return fmt.Sprintf("%d TB", tb)
}
+
+func (c *Cluster) BlankFields() {
+ for _, d := range c.Droplets {
+ d.CurrentState = 0
+ }
+}