if (num > 1000000)
if (num >= 1000000000) PR_snprintf(buf, limit, "%1.2fG", (double) num / 1e9); else if (num >= 1000000)
static const char *prettybig(uint32 num, char *buf, size_t limit){    if (num > 1000000)        PR_snprintf(buf, limit, "%1.2fM", (double) num / 1e6);    else if (num > 1000)        PR_snprintf(buf, limit, "%1.2fK", (double) num / 1e3);    else        PR_snprintf(buf, limit, "%lu", (unsigned long) num);    return buf;}