Skip to content

Commit

Permalink
Updates according to PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
aurecchia committed May 31, 2018
1 parent 74b0452 commit 674445c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/scala/viper/server/VerificationWorker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -267,20 +267,19 @@ class ViperBackend(private val _frontend: SilFrontend) {

// finish by reporting the overall outcome

val endTime = System.currentTimeMillis();
_frontend.result match {
case Success =>
//printSuccess();
_frontend.reporter.report(OverallSuccessMessage(_frontend.getVerifierName, endTime - _frontend.startTime))
_frontend.reporter.report(OverallSuccessMessage(_frontend.getVerifierName, System.currentTimeMillis() - _frontend.startTime))
// TODO: Think again about where to detect and trigger SymbExLogging
if (SymbExLogger.enabled) {
_frontend.reporter.report(SymbExLogReport(endTime, Some(SymbExLogger.toJSString())));
_frontend.reporter.report(SymbExLogReport(System.currentTimeMillis(), Some(SymbExLogger.toJSString())))
}
case f@Failure(_) =>
//printErrors(errors: _*);
_frontend.reporter.report(OverallFailureMessage(_frontend.getVerifierName, endTime - _frontend.startTime, f))
_frontend.reporter.report(OverallFailureMessage(_frontend.getVerifierName, System.currentTimeMillis() - _frontend.startTime, f))
if (SymbExLogger.enabled) {
_frontend.reporter.report(SymbExLogReport(endTime, None));
_frontend.reporter.report(SymbExLogReport(System.currentTimeMillis(), None))
}
}
}
Expand Down

0 comments on commit 674445c

Please sign in to comment.