mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
fea: access in name proxy.
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
type Perf struct {
|
||||
Point int `json:"point"`
|
||||
Access int `json:"access"`
|
||||
Neighbor int `json:"neighbor"`
|
||||
OnLine int `json:"online"`
|
||||
Link int `json:"link"`
|
||||
@@ -20,8 +20,8 @@ type Perf struct {
|
||||
}
|
||||
|
||||
func (p *Perf) Correct() {
|
||||
if p.Point == 0 {
|
||||
p.Point = 64
|
||||
if p.Access == 0 {
|
||||
p.Access = 64
|
||||
}
|
||||
if p.Neighbor == 0 {
|
||||
p.Neighbor = 64
|
||||
|
||||
Reference in New Issue
Block a user