修改首页图单位
This commit is contained in:
@@ -897,14 +897,14 @@
|
||||
color: 'white',
|
||||
fontSize: 12,
|
||||
formatter: function (value, index) {
|
||||
if (value > 1000 && value <= 1000000) {
|
||||
return value/1000 + " K";
|
||||
if (value > 1024 && value <= 1048576) {
|
||||
return value/1024 + " KBps";
|
||||
}
|
||||
if (value > 10000000 && value <= 1000000000) {
|
||||
return value/1000000 + " M";
|
||||
if (value > 1048576 && value <= 1073741824) {
|
||||
return value/1048576 + " MBps";
|
||||
}
|
||||
if (value > 100000000) {
|
||||
return value/1000000000 + " B";
|
||||
if (value > 1073741824) {
|
||||
return value/1073741824 + " GBps";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user