+
+ if (mi->polygon_count > 0)
+ {
+ unsigned long p = mi->polygon_count;
+ const char *s = "";
+# if 0
+ if (p >= (1024 * 1024)) p >>= 20, s = "M";
+ else if (p >= 2048) p >>= 10, s = "K";
+# endif
+
+ strcat (msg, "\nPolys: ");
+ if (p >= 1000000)
+ sprintf (msg + strlen(msg), "%d,%03d,%03d%s",
+ (p / 1000000), ((p / 1000) % 1000), (p % 1000), s);
+ else if (p >= 1000)
+ sprintf (msg + strlen(msg), "%d,%03d%s",
+ (p / 1000), (p % 1000), s);
+ else
+ sprintf (msg + strlen(msg), "%d%s", p, s);
+ }