MCPcopy
hub / github.com/KOP-XIAO/QuantumultX / CUnit

Function CUnit

Scripts/traffic-check.js:155–158  ·  view source on GitHub ↗
(cnt)

Source from the content-addressed store, hash-verified

153
154//单位展示
155function CUnit(cnt) {
156 cnt = Number(cnt)>=1024? (cnt/1024).toFixed(2)+" GB " : cnt.toFixed(1)+" MB "
157 return cnt
158}
159
160function NodeData(nodes,pflag){
161 datad = "<b>TCP : </b>"+" <font color=#2874A6 > "+CUnit(Tdatad)+"⟱ </font>| <font color=#9B59B6>"+CUnit(Tdatau)+"⟰ </font> "

Callers 2

RankFunction · 0.85
NodeDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected