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