From 1f032c27c8158e44723253179928104813d45cdc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 24 Jul 2024 11:32:41 +0200 Subject: 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). --- vm/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') 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 } -- cgit mrf-deployment