mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
Update config.go
修复了以下问题: - 延迟默认最高300ms,超过后默认抹平 - 曲线上有很多ping值为0的无效散点,导致毛刺很多,干扰效果 - 图标的y轴比例失调,上方大片留白,大大降低了有效显示区域 - 默认只显示最近不到半小时左右的延迟表现,想看全天需要拖动,影响效果 - 曲线不显示极大极小值,不够直观
This commit is contained in:
parent
fe2872bbb3
commit
4e5cc0b642
@ -147,7 +147,7 @@ func (c *Config) Read(path string) error {
|
|||||||
c.Location = "Asia/Shanghai"
|
c.Location = "Asia/Shanghai"
|
||||||
}
|
}
|
||||||
if c.MaxTCPPingValue == 0 {
|
if c.MaxTCPPingValue == 0 {
|
||||||
c.MaxTCPPingValue = 300
|
c.MaxTCPPingValue = 1000
|
||||||
}
|
}
|
||||||
if c.AvgPingCount == 0 {
|
if c.AvgPingCount == 0 {
|
||||||
c.AvgPingCount = 2
|
c.AvgPingCount = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user