Skip to content

Commit

Permalink
Merge pull request #40 from wangbokun/dev
Browse files Browse the repository at this point in the history
add monitor auto lower
  • Loading branch information
wangbokun authored Oct 10, 2020
2 parents 91c3a55 + c5169f2 commit 3ad9b80
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/autolevel.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package tools

type Autolower struct{}

func (Autolower)MonitorLevelP(level string)(l string) {
switch level {
case "P0":
return "p1"
case "P1":
return "p2"
case "P2":
return "p3"
case "P3":
return "p4"
default:
return level
}
}

0 comments on commit 3ad9b80

Please sign in to comment.