mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-14 20:30:25 +08:00
节点监控图表流量使用秒来计算
This commit is contained in:
@@ -55,8 +55,8 @@ func (this *TrafficInAction) RunPost(params struct {
|
|||||||
if ok {
|
if ok {
|
||||||
result = append(result, maps.Map{
|
result = append(result, maps.Map{
|
||||||
"label": timeutil.FormatTime("H:i", timestamp),
|
"label": timeutil.FormatTime("H:i", timestamp),
|
||||||
"value": total,
|
"value": total / 60,
|
||||||
"text": numberutils.FormatBytes(total),
|
"text": numberutils.FormatBytes(total / 60),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
result = append(result, maps.Map{
|
result = append(result, maps.Map{
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ func (this *TrafficOutAction) RunPost(params struct {
|
|||||||
if ok {
|
if ok {
|
||||||
result = append(result, maps.Map{
|
result = append(result, maps.Map{
|
||||||
"label": timeutil.FormatTime("H:i", timestamp),
|
"label": timeutil.FormatTime("H:i", timestamp),
|
||||||
"value": total,
|
"value": total / 60,
|
||||||
"text": numberutils.FormatBytes(total),
|
"text": numberutils.FormatBytes(total / 60),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
result = append(result, maps.Map{
|
result = append(result, maps.Map{
|
||||||
|
|||||||
Reference in New Issue
Block a user