From 49e6369fe732c0f81e5b03b36e345afbf3c79a15 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 24 Jul 2024 12:08:49 +0200 Subject: pkg/stat: rename package name to singular form Go package names should generally be singular form: https://go.dev/blog/package-names https://rakyll.org/style-packages https://groups.google.com/g/golang-nuts/c/buBwLar1gNw --- vm/vm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vm') diff --git a/vm/vm.go b/vm/vm.go index 20cde4cd4..19833dc99 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -22,7 +22,7 @@ import ( "github.com/google/syzkaller/pkg/mgrconfig" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/pkg/report" - "github.com/google/syzkaller/pkg/stats" + "github.com/google/syzkaller/pkg/stat" "github.com/google/syzkaller/sys/targets" "github.com/google/syzkaller/vm/dispatcher" "github.com/google/syzkaller/vm/vmimpl" @@ -49,7 +49,7 @@ type Pool struct { timeouts targets.Timeouts activeCount int32 hostFuzzer bool - statOutputReceived *stats.Val + statOutputReceived *stat.Val } type Instance struct { @@ -134,8 +134,8 @@ func Create(cfg *mgrconfig.Config, debug bool) (*Pool, error) { template: cfg.WorkdirTemplate, timeouts: cfg.Timeouts, hostFuzzer: cfg.SysTarget.HostFuzzer, - statOutputReceived: stats.New("vm output", "Bytes of VM console output received", - stats.Graph("traffic"), stats.Rate{}, stats.FormatMB), + statOutputReceived: stat.New("vm output", "Bytes of VM console output received", + stat.Graph("traffic"), stat.Rate{}, stat.FormatMB), }, nil } -- cgit mrf-deployment