Merge pull request #6674 from fujitatomoya/bugfix-20220312-typo-under-cmd

typo fixes under cmd.
This commit is contained in:
Kazuyoshi Kato 2022-03-14 09:39:32 -07:00 committed by GitHub
commit 8e546c12f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,7 @@ func parseFlags() {
flag.StringVar(&namespaceFlag, "namespace", "", "namespace that owns the shim") flag.StringVar(&namespaceFlag, "namespace", "", "namespace that owns the shim")
flag.StringVar(&socketFlag, "socket", "", "socket path to serve") flag.StringVar(&socketFlag, "socket", "", "socket path to serve")
flag.StringVar(&addressFlag, "address", "", "grpc address back to main containerd") flag.StringVar(&addressFlag, "address", "", "grpc address back to main containerd")
flag.StringVar(&workdirFlag, "workdir", "", "path used to storge large temporary data") flag.StringVar(&workdirFlag, "workdir", "", "path used to storage large temporary data")
flag.StringVar(&runtimeRootFlag, "runtime-root", process.RuncRoot, "root directory for the runtime") flag.StringVar(&runtimeRootFlag, "runtime-root", process.RuncRoot, "root directory for the runtime")
flag.StringVar(&criuFlag, "criu", "", "path to criu binary") flag.StringVar(&criuFlag, "criu", "", "path to criu binary")
flag.BoolVar(&systemdCgroupFlag, "systemd-cgroup", false, "set runtime to use systemd-cgroup") flag.BoolVar(&systemdCgroupFlag, "systemd-cgroup", false, "set runtime to use systemd-cgroup")

View File

@ -103,7 +103,7 @@ func (w *execWorker) exec(ctx, tctx context.Context) {
} }
continue continue
} }
// only log times are success so we don't scew the results from failures that go really fast // only log times are success so we don't skew the results from failures that go really fast
execTimer.WithValues(w.commit).UpdateSince(start) execTimer.WithValues(w.commit).UpdateSince(start)
} }
} }

View File

@ -104,7 +104,7 @@ type result struct {
} }
func main() { func main() {
// morr power! // more power!
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())
app := cli.NewApp() app := cli.NewApp()

View File

@ -67,7 +67,7 @@ func (w *worker) run(ctx, tctx context.Context) {
} }
continue continue
} }
// only log times are success so we don't scew the results from failures that go really fast // only log times are success so we don't skew the results from failures that go really fast
ct.WithValues(w.commit).UpdateSince(start) ct.WithValues(w.commit).UpdateSince(start)
} }
} }

View File

@ -46,7 +46,7 @@ func handleSignals(ctx context.Context, signals chan os.Signal, serverC chan *se
server = s server = s
case s := <-signals: case s := <-signals:
// Do not print message when deailing with SIGPIPE, which may cause // Do not print message when dealing with SIGPIPE, which may cause
// nested signals and consume lots of cpu bandwidth. // nested signals and consume lots of cpu bandwidth.
if s == unix.SIGPIPE { if s == unix.SIGPIPE {
continue continue