Skip to content

Commit

Permalink
fix get pf
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlov committed Mar 3, 2021
1 parent 2d79d3d commit 0670571
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ func getPF(n string) PF {
if v, ok := M[n]; ok {
return v
}
ns := strings.Index(n, "/")
if ns > -1 {
if v, ok := M[n[:ns]]; ok {
return v
}
}
return PF{"60", "120"}
}

Expand Down

0 comments on commit 0670571

Please sign in to comment.