HelloZeroNet / HelloZeroNet/ZeroNet
ChartCollector Collector connection_ping_min error: min() arg is an empty sequence
未关闭
- 主要语言
- JavaScript
- 星标
- 18.8k
- 派生
- 2.3k
- PR 合并指标
- 30 天内没有已合并 PR
描述
I'm using `Version: 0.7.1 r4206, Python 3.7.3 ` and an error keeps coming out from logs:
`ChartCollector Collector connection_ping_min error: min() arg is an empty sequence`
This might be a result of the lack of edge condition checks in [the corresponding code](https://github.com/HelloZeroNet/ZeroNet/blob/py3/plugins/Chart/ChartCollector.py#L49
), where the built-in `min()` is sensitive to zero-length lists.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从链接指向的 plugins/Chart/ChartCollector.py 第 49 行附近开始,跟踪 connection-ping 数据如何到达 min() 调用。复现或检查空数据路径,然后验证在没有可用值时 collector 不再发出此错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- observability
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100