Skip to content

Commit

Permalink
0002159: Add database time and server time to support snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jan 26, 2015
1 parent 716c614 commit 2506956
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -337,6 +337,8 @@ protected static void writeRuntimeStats(ISymmetricEngine engine, File tmpDir) {
try {
fos = new FileOutputStream(new File(tmpDir, "runtime-stats.properties"));
Properties runtimeProperties = new Properties();
runtimeProperties.setProperty("server.time", new Date().toString());
runtimeProperties.setProperty("database.time", new Date(engine.getSymmetricDialect().getDatabaseTime()).toString());
runtimeProperties.setProperty("unrouted.data.count",
Long.toString(engine.getRouterService().getUnroutedDataCount()));
runtimeProperties.setProperty("outgoing.errors.count",
Expand Down

0 comments on commit 2506956

Please sign in to comment.