# IGNITE-298 Show "UNLIMITED" if off-heap size configuration == 0.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/656ee473 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/656ee473 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/656ee473 Branch: refs/heads/ignite-187 Commit: 656ee473e2299c16a0f59dc1aa37bbed04ee656e Parents: be3c24c Author: AKuznetsov <akuznet...@gridgain.com> Authored: Wed Mar 4 16:31:49 2015 +0700 Committer: AKuznetsov <akuznet...@gridgain.com> Committed: Wed Mar 4 16:31:49 2015 +0700 ---------------------------------------------------------------------- .../apache/ignite/visor/commands/cache/VisorCacheCommand.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/656ee473/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala index 69da6f5..1c52676 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala @@ -856,7 +856,11 @@ object VisorCacheCommand { cacheT += ("Concurrent Asynchronous Operations Number", cfg.maxConcurrentAsyncOperations()) cacheT += ("Memory Mode", cfg.memoryMode()) cacheT += ("Keep Values Bytes", cfg.valueBytes()) - cacheT += ("Off-Heap Size", if (cfg.offsetHeapMaxMemory() >= 0) cfg.offsetHeapMaxMemory() else NA) + cacheT += ("Off-Heap Size", cfg.offsetHeapMaxMemory() match { + case 0 => "UNLIMITED" + case size if size < 0 => NA + case size => size + }) cacheT += ("Loader Factory Class Name", safe(cfg.loaderFactory())) cacheT += ("Writer Factory Class Name", safe(cfg.writerFactory()))