typo fixes under cmd.
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
This commit is contained in:
parent
d4641e1ce1
commit
ba1674389f
@ -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")
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user