aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-24 11:32:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-24 14:39:45 +0000
commit1f032c27c8158e44723253179928104813d45cdc (patch)
tree80845c1da6b2c62ccec9118ab68f5d75766f8485 /vm
parentbea049d0b7d151ad71617c10191fbd954decb300 (diff)
pkg/stats: rename Create to New
New is more idiomatic name and is shorter (lines where stats.Create is used are usually long, so making them a bit shorter is good).
Diffstat (limited to 'vm')
-rw-r--r--vm/vm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm.go b/vm/vm.go
index ca22f2be1..20cde4cd4 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -134,7 +134,7 @@ func Create(cfg *mgrconfig.Config, debug bool) (*Pool, error) {
template: cfg.WorkdirTemplate,
timeouts: cfg.Timeouts,
hostFuzzer: cfg.SysTarget.HostFuzzer,
- statOutputReceived: stats.Create("vm output", "Bytes of VM console output received",
+ statOutputReceived: stats.New("vm output", "Bytes of VM console output received",
stats.Graph("traffic"), stats.Rate{}, stats.FormatMB),
}, nil
}