Skip to content

Commit

Permalink
Improved command output
Browse files Browse the repository at this point in the history
  • Loading branch information
evrignaud committed Oct 31, 2015
1 parent daaef01 commit 6d04151
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.nio.file.Path;
import java.util.Set;

import org.apache.commons.io.FileUtils;
import org.fim.internal.StateManager;
import org.fim.model.Context;
import org.fim.model.State;
Expand Down Expand Up @@ -66,7 +67,8 @@ public Object execute(Context context) throws Exception
if (Files.exists(statFile))
{
State state = manager.loadState(lastStateNumber);
System.out.printf("State #%d: %s (%d files)%n", lastStateNumber, formatDate(state.getTimestamp()), state.getFileCount());
System.out.printf("Files ignored in State #%d: %s (%d files - %s)%n", lastStateNumber, formatDate(state.getTimestamp()),
state.getFileCount(), FileUtils.byteCountToDisplaySize(state.getFilesContentLength()));
if (state.getComment().length() > 0)
{
System.out.printf("\tComment: %s%n", state.getComment());
Expand Down

0 comments on commit 6d04151

Please sign in to comment.