Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
fix double format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Aug 5, 2021
1 parent 4d4bb7a commit 2c95a5a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ object Exchange {
batchSuccess,
batchFailure)
processor.process()
val costTime = ((System.currentTimeMillis() - startTime) / 1000).formatted("%.2f")
val costTime = ((System.currentTimeMillis() - startTime) / 1000.0).formatted("%.2f")
LOG.info(
s"data source count: ${count}, " +
s"import for tag ${tagConfig.name} cost time: ${costTime} s")
Expand Down Expand Up @@ -194,7 +194,7 @@ object Exchange {
batchFailure
)
processor.process()
val costTime = ((System.currentTimeMillis() - startTime) / 1000).formatted("%.2f")
val costTime = ((System.currentTimeMillis() - startTime) / 1000.0).formatted("%.2f")
LOG.info(
s"data source count: ${count}, " +
s"import for edge ${edgeConfig.name} cost time: ${costTime} s")
Expand All @@ -220,7 +220,7 @@ object Exchange {
val startTime = System.currentTimeMillis()
val processor = new ReloadProcessor(data, configs, batchSuccess, batchFailure)
processor.process()
val costTime = ((System.currentTimeMillis() - startTime) / 1000).formatted("%.2f")
val costTime = ((System.currentTimeMillis() - startTime) / 1000.0).formatted("%.2f")
LOG.info(s"reimport ngql count: ${count}, cost time: ${costTime}")
LOG.info(s"batchSuccess.reimport: ${batchSuccess.value}")
LOG.info(s"batchFailure.reimport: ${batchFailure.value}")
Expand Down

0 comments on commit 2c95a5a

Please sign in to comment.