Author: bpoussin Date: 2014-07-17 18:04:09 +0200 (Thu, 17 Jul 2014) New Revision: 4040 Url: http://forge.codelutin.com/projects/isis-fish/repository/revisions/4040 Log: better info message Modified: trunk/src/main/java/fr/ifremer/isisfish/datastore/ResultStorageCSV.java trunk/src/main/resources/i18n/isis-fish_en_GB.properties trunk/src/main/resources/i18n/isis-fish_fr_FR.properties Modified: trunk/src/main/java/fr/ifremer/isisfish/datastore/ResultStorageCSV.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/datastore/ResultStorageCSV.java 2014-07-16 20:45:26 UTC (rev 4039) +++ trunk/src/main/java/fr/ifremer/isisfish/datastore/ResultStorageCSV.java 2014-07-17 16:04:09 UTC (rev 4040) @@ -148,14 +148,20 @@ @Override public String getInfo() { + String oldest = ""; + if (maxGapWithCurrentStepReadOnDisk > 0) { + oldest = String.format("\tthe oldest step read on disk was %s step before current step\n", + maxGapWithCurrentStepReadOnDisk); + } + return String.format( "ResultStorageCSV:\n" + "\t%s results written to disk on a total of %s\n" + "\t%s results read (%s in cache and %s on disk)\n" - + "\tthe oldest step read on disk was %s step before current step\n", + + "%s", numberOfResultOnDisk, numberOfResult, numberOfResultAsked, numberOfResultReadInCache, numberOfResultReadOnDisk, - maxGapWithCurrentStepReadOnDisk); + oldest); } /** Modified: trunk/src/main/resources/i18n/isis-fish_en_GB.properties =================================================================== --- trunk/src/main/resources/i18n/isis-fish_en_GB.properties 2014-07-16 20:45:26 UTC (rev 4039) +++ trunk/src/main/resources/i18n/isis-fish_en_GB.properties 2014-07-17 16:04:09 UTC (rev 4040) @@ -29,6 +29,7 @@ Error\ during\ vcs\ initialisation= Error\ while\ uploading\ public\ key\ to\ remote\ serveur\ authorized_keys= Generate\ next\ simulation= +Groups= Import\ one\ java\ file\ script\ source= Import\ simulation\ file\ %s\ in\ directory\ %s\ and\ rename\ from\ %s\ to\ %s= Import\ zipped\ file\ containing\ all\ scripts\ directory\ structure= @@ -68,6 +69,7 @@ Use\ branches,\ switch\ not\ needed= User\ restart\ simulation\ %s= User\ stop\ simulation\ %s= +Zones= an\ alternative\ way\ to\ specify\ the\ scale.= could\ not\ close\ reader\ %1$s=could not close reader %1$s could\ not\ found\ %s= Modified: trunk/src/main/resources/i18n/isis-fish_fr_FR.properties =================================================================== --- trunk/src/main/resources/i18n/isis-fish_fr_FR.properties 2014-07-16 20:45:26 UTC (rev 4039) +++ trunk/src/main/resources/i18n/isis-fish_fr_FR.properties 2014-07-17 16:04:09 UTC (rev 4040) @@ -29,6 +29,7 @@ Error\ during\ vcs\ initialisation= Error\ while\ uploading\ public\ key\ to\ remote\ serveur\ authorized_keys= Generate\ next\ simulation= +Groups= Import\ one\ java\ file\ script\ source= Import\ simulation\ file\ %s\ in\ directory\ %s\ and\ rename\ from\ %s\ to\ %s= Import\ zipped\ file\ containing\ all\ scripts\ directory\ structure= @@ -68,6 +69,7 @@ Use\ branches,\ switch\ not\ needed= User\ restart\ simulation\ %s= User\ stop\ simulation\ %s= +Zones= an\ alternative\ way\ to\ specify\ the\ scale.= could\ not\ close\ reader\ %1$s=could not close reader %1$s could\ not\ found\ %s=