From 8bedd19e847ff2abafd33b693c8f6be44a01a26f Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 26 Apr 2017 09:27:23 +0200 Subject: [PATCH] Improved demo display. --- src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java b/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java index fd66176..1162a09 100644 --- a/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java +++ b/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java @@ -58,6 +58,7 @@ public final class SikevaDBDemo SikevaDB database = null; try { + // File homeDirectory = new File("/tmp/footest"); database = SikevaDBFactory.get(homeDirectory); @@ -127,8 +128,8 @@ public final class SikevaDBDemo } // - System.out.println("Database values:\t" + database.countOfElements()); - System.out.println("Database memory:\t" + database.memorySize() + " bytes"); + System.out.println(String.format("Database values:\t %d elements", database.countOfElements())); + System.out.println(String.format("Database memory:\t %d bytes", database.memorySize())); // database.close();