Simplify expression
This commit is contained in:
parent
df6bc4fd28
commit
c7cc131e19
|
@ -61,7 +61,7 @@ const print_stats = {
|
||||||
stat = stat >= 100e6 ? Math.round(stat / 1e6) + "m" : stat >= 100e3 ? Math.round(stat / 1e3) + "k" : stat;
|
stat = stat >= 100e6 ? Math.round(stat / 1e6) + "m" : stat >= 100e3 ? Math.round(stat / 1e3) + "k" : stat;
|
||||||
text += stat_names[i] + "=" + stat + " ";
|
text += stat_names[i] + "=" + stat + " ";
|
||||||
|
|
||||||
if(i % Math.floor(stat_names.length / 3) === Math.floor(stat_names.length / 3) - 1)
|
if(((i + 1) % Math.floor(stat_names.length / 3) === 0))
|
||||||
{
|
{
|
||||||
text += "\n";
|
text += "\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue