diff options
Diffstat (limited to 'sparkybe-onap-service/src/main/java/org/onap/aai/sparky/sync/TransactionRateMonitor.java')
-rw-r--r-- | sparkybe-onap-service/src/main/java/org/onap/aai/sparky/sync/TransactionRateMonitor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/sync/TransactionRateMonitor.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/sync/TransactionRateMonitor.java index 07d5e84..464875c 100644 --- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/sync/TransactionRateMonitor.java +++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/sync/TransactionRateMonitor.java @@ -60,7 +60,7 @@ public class TransactionRateMonitor { public double getCurrentTps() { if (numTransactions.get() > 0) { - double timeDelta = System.currentTimeMillis() - startTimeInMs; + long timeDelta = System.currentTimeMillis() - startTimeInMs; double numTxns = numTransactions.get(); return (numTxns / timeDelta) * 1000.0; } |