530 | + ui->mempoolNumberTxs->setText(QString::number(numberOfTxs));
531 | +
532 | + if (dynUsage < 1024*1024)
533 | + ui->mempoolSize->setText(QString::number(dynUsage/1024.0, 'f', 2) + " KB");
534 | + else
535 | + ui->mempoolSize->setText(QString::number(dynUsage/1024.0/1024.0, 'f', 2) + " MB");
I don't like all those MB, MiB inconsistencies. At least make it consistent with the parameter which sets the mempool size. (Which is not MiB iirc)
We should be using MB (1e6 bytes) unless there is a convincing reason to use MiB (2^20 bytes).
Some people refer to 2^20 bytes as "MB", so at least MiB is clear what it does.
But it's used less commonly, so MB is fine as well. Just be consistent, which is what the NIT is complaining about. You can't parse the command line in MB (1e6) and then display MB (10^20)
In bitcoin core we stick to SI units and use MB, which is defined as 1000000, not 1024*1024, MiB, etc if we do that that's a mistake.
Technically, B in SI means bel. B as byte is defined by IEEE 1541 (which
also defined b to mean bit).