Added a drop down so that we have choice to make about which network interface to choose.
This commit is contained in:
1 parent
2141c3eacd
commit
ff31ee773f
5 files changed
+124
-38
No files matched your search
@@ -109,7 +109,7 @@ export const NetworkTick = ({ x, y, payload, index, formatter }) => {
|
||||
formatter = (value, space = false) => {
|
||||
if (typeof value !== "number") return value;
|
||||
// need to add space between value and unit
|
||||
return `${(value / 1024).toFixed(2)}${space ? " " : ""}Kbps`;
|
||||
return `${(value / 1024).toFixed(1)}${space ? " " : ""}Kbps`;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user