Branch: refs/heads/bug988047
Home: https://github.com/mailru/tarantool
Commit: d04e9fb96bb94582b53762b521a5ae745bd6b1d1
https://github.com/mailru/tarantool/commit/d04e9fb96bb94582b53762b521a5ae745bd6b1d1
Author: Pavel Cherenkov <[email protected]>
Date: 2012-05-04 (Fri, 04 May 2012)
Changed paths:
M src/salloc.m
Log Message:
-----------
bug988047: added percentage sign to items_used, arena_used in slab info
diff --git a/src/salloc.m b/src/salloc.m
index bb54a13..4d78e51 100644
--- a/src/salloc.m
+++ b/src/salloc.m
@@ -349,8 +349,8 @@
(int)slab_classes[i].item_size, slabs, items, used,
free);
}
- tbuf_printf(t, " items_used: %.2f" CRLF, (double)total_used /
arena.size * 100);
- tbuf_printf(t, " arena_used: %.2f" CRLF, (double)arena.used /
arena.size * 100);
+ tbuf_printf(t, " items_used: %.2f%%" CRLF, (double)total_used /
arena.size * 100);
+ tbuf_printf(t, " arena_used: %.2f%%" CRLF, (double)arena.used /
arena.size * 100);
}
void
================================================================
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp