Browse Source

Better printing

main
Tony Garnock-Jones 11 months ago
parent
commit
46a129d40f
  1. 4
      src/test/java/org/syndicate_lang/actors/example/example2/Main.java

4
src/test/java/org/syndicate_lang/actors/example/example2/Main.java

@ -49,7 +49,9 @@ public class Main implements IForwarder {
long nMessages = _nActors * _nRounds;
double hz = nMessages / (delta / 1000.0);
Actor.current().stop();
Actor.log().info("Stop after " + nMessages + " messages; " + hz + " Hz");
Actor.log().info(String.format("Stop after %d messages; %.1f Hz",
nMessages,
hz));
}
}
}
Loading…
Cancel
Save