Skip to content

Commit

Permalink
Fix mis spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
syifan committed Mar 28, 2024
1 parent b02c132 commit c89a996
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions samples/runner/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ var customPortForAkitaRTM = flag.Int("akitartm-port", 0,
this number is not given or a invalid number is given number, a random port
will be used.`)

var analyszerNameFlag = flag.String("analyzer-name", "",
var analyzerNameFlag = flag.String("analyzer-name", "",
"The name of the analyzer to use.")

var analyszerPeriodFlag = flag.Float64("analyzer-period", 0.0,
var analyzerPeriodFlag = flag.Float64("analyzer-period", 0.0,
"The period to dump the analyzer results.")

var visTracing = flag.Bool("trace-vis", false,
Expand Down
14 changes: 7 additions & 7 deletions samples/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (r *Runner) buildTimingPlatform() {

b = b.WithMonitor(r.monitor)

b = r.setAnalyszer(b)
b = r.setAnalyzer(b)

if *magicMemoryCopy {
b = b.WithMagicMemoryCopy()
Expand All @@ -146,17 +146,17 @@ func (r *Runner) buildTimingPlatform() {
r.monitor.StartServer()
}

func (*Runner) setAnalyszer(
func (*Runner) setAnalyzer(
b R9NanoPlatformBuilder,
) R9NanoPlatformBuilder {
if *analyszerPeriodFlag == 0 && *analyszerNameFlag != "" {
panic("must specify -analyszer-period when using -analyszer-name")
if *analyzerPeriodFlag == 0 && *analyzerNameFlag != "" {
panic("must specify -analyzer-period when using -analyzer-name")
}

if *analyszerPeriodFlag != 0 {
if *analyzerPeriodFlag != 0 {
b = b.WithPerfAnalyzer(
*analyszerNameFlag,
*analyszerPeriodFlag,
*analyzerNameFlag,
*analyzerPeriodFlag,
)
}
return b
Expand Down

0 comments on commit c89a996

Please sign in to comment.