Skip to content

Commit 93e372f

Browse files
committed
Format speed
1 parent 244d88f commit 93e372f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/com/glacialrush/react/util/Format.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@ public static String mem(long mb)
7474
}
7575
}
7676

77+
public static String dps(long b)
78+
{
79+
if(b < 1024)
80+
{
81+
return f(b) + " B/s";
82+
}
83+
84+
else
85+
{
86+
return fd(((double)b / (double)1024), 1) + " KB/s";
87+
}
88+
}
89+
7790
public static String f(long i)
7891
{
7992
instantiate();

0 commit comments

Comments
 (0)