From 8b55021a4b4c4965a3ca6387d21c7ce442db93b3 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 18 Jun 2019 17:23:18 +0100 Subject: [PATCH] fix --- cli/src/main/groovy/com/muwire/cli/Cli.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/main/groovy/com/muwire/cli/Cli.groovy b/cli/src/main/groovy/com/muwire/cli/Cli.groovy index d8eb2b39..cad88327 100644 --- a/cli/src/main/groovy/com/muwire/cli/Cli.groovy +++ b/cli/src/main/groovy/com/muwire/cli/Cli.groovy @@ -73,7 +73,7 @@ class Cli { Timer timer = new Timer("status-printer", true) timer.schedule({ - println new Date() + " Connections $connectionsListener.connections Uploads $uploadsListener.uploads Shared $sharedListener.shared" + println String.valueOf(new Date()) + " Connections $connectionsListener.connections Uploads $uploadsListener.uploads Shared $sharedListener.shared" } as TimerTask, 60000, 60000) def latch = new CountDownLatch(1) @@ -119,11 +119,11 @@ class Cli { volatile int uploads public void onUploadEvent(UploadEvent e) { uploads++ - println new Date() + " Starting upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" + println String.valueOf(new Date()) + " Starting upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" } public void onUploadFinishedEvent(UploadFinishedEvent e) { uploads-- - println new Date() + " Finished upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" + println String.valueOf(new Date()) + " Finished upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" } }