Skip to content

Commit

Permalink
fix exit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliaoaoaojiao committed Feb 18, 2023
1 parent 5b2f64c commit 283d07d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/perfmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var perfmonCmd = &cobra.Command{
select {
case <-sig:
exitChancel()
os.Exit(0)
case perfData, ok := <-perfDataChan:
if ok {
fmt.Println(util.Format(perfData, isFormat, isJson))
Expand Down

0 comments on commit 283d07d

Please sign in to comment.