src/hotspot/os/aix/os_aix.cpp
changeset 48954 c8a33db795b6
parent 48835 62004f705d27
parent 48876 45b6aae769cc
child 49449 ef5d5d343e2a
--- a/src/hotspot/os/aix/os_aix.cpp	Sat Feb 10 09:48:51 2018 +0000
+++ b/src/hotspot/os/aix/os_aix.cpp	Sat Feb 10 09:25:35 2018 +0100
@@ -1462,7 +1462,6 @@
 
   os::Aix::meminfo_t mi;
   if (os::Aix::get_meminfo(&mi)) {
-    char buffer[256];
     if (os::Aix::on_aix()) {
       st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);
       st->print_cr("physical free  : " SIZE_FORMAT, mi.real_free);
@@ -1476,10 +1475,9 @@
       // pgsp_free: size of system ASP times percentage of system ASP unused
       st->print_cr("physical total     : " SIZE_FORMAT, mi.real_total);
       st->print_cr("system asp total   : " SIZE_FORMAT, mi.pgsp_total);
-      st->print_cr("%% system asp used : " SIZE_FORMAT,
+      st->print_cr("%% system asp used : %.2f",
         mi.pgsp_total ? (100.0f * (mi.pgsp_total - mi.pgsp_free) / mi.pgsp_total) : -1.0f);
     }
-    st->print_raw(buffer);
   }
   st->cr();