Skip to content

Commit

Permalink
SQRP-272 Fix negative duration metric
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-garcia-sonarsource authored and lukasz-jarocki-sonarsource committed Feb 28, 2025
1 parent 8bd8267 commit 4f7051b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public File generateManifestsZip(DefaultInputModule module, File cliExecutable)
success = true;
return zipPath.toFile();
} finally {
telemetryCache.put("scanner.sca.execution.cli.duration", String.valueOf(startTime - system2.now()));
telemetryCache.put("scanner.sca.execution.cli.duration", String.valueOf(system2.now() - startTime));
telemetryCache.put("scanner.sca.execution.cli.success", String.valueOf(success));
}
}
Expand Down

0 comments on commit 4f7051b

Please sign in to comment.