mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	节点详情中显示磁盘预估写入速度
This commit is contained in:
		@@ -24,7 +24,7 @@ func JSONClone(v interface{}) (interface{}, error) {
 | 
				
			|||||||
	return nv, nil
 | 
						return nv, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// 判断JSON数据是否为null
 | 
					// JSONIsNull 判断JSON数据是否为null
 | 
				
			||||||
func JSONIsNull(jsonData []byte) bool {
 | 
					func JSONIsNull(jsonData []byte) bool {
 | 
				
			||||||
	return len(jsonData) == 0 || bytes.Equal(jsonData, []byte("null"))
 | 
						return len(jsonData) == 0 || bytes.Equal(jsonData, []byte("null"))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -389,6 +389,7 @@ func (this *DetailAction) RunGet(params struct {
 | 
				
			|||||||
			"exePath":              status.ExePath,
 | 
								"exePath":              status.ExePath,
 | 
				
			||||||
			"apiSuccessPercent":    status.APISuccessPercent,
 | 
								"apiSuccessPercent":    status.APISuccessPercent,
 | 
				
			||||||
			"apiAvgCostSeconds":    status.APIAvgCostSeconds,
 | 
								"apiAvgCostSeconds":    status.APIAvgCostSeconds,
 | 
				
			||||||
 | 
								"diskWritingSpeedMB":   status.DiskWritingSpeedMB,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		"group":  groupMap,
 | 
							"group":  groupMap,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -180,6 +180,15 @@
 | 
				
			|||||||
                   </div>
 | 
					                   </div>
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
            </tr>
 | 
					            </tr>
 | 
				
			||||||
 | 
					            <tr>
 | 
				
			||||||
 | 
					                <td>磁盘预估写入最大速度</td>
 | 
				
			||||||
 | 
					                <td>
 | 
				
			||||||
 | 
					                    <span v-if="node.status.diskWritingSpeedMB == 0">-</span><span v-if="node.status.diskWritingSpeedMB > 0">> {{node.status.diskWritingSpeedMB}}</span>
 | 
				
			||||||
 | 
					                    <span v-if="node.status.diskWritingSpeedMB > 1000">MB/s 极快</span>
 | 
				
			||||||
 | 
					                    <span v-else-if="node.status.diskWritingSpeedMB > 150">MB/s 快</span>
 | 
				
			||||||
 | 
					                    <span v-else-if="node.status.diskWritingSpeedMB > 0">MB/s 一般</span>
 | 
				
			||||||
 | 
					                </td>
 | 
				
			||||||
 | 
					            </tr>
 | 
				
			||||||
            <tr>
 | 
					            <tr>
 | 
				
			||||||
                <td>缓存内存容量</td>
 | 
					                <td>缓存内存容量</td>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user