From bdc9612819448b63674dc7884fa10dbaba2185d4 Mon Sep 17 00:00:00 2001 From: jihoonl Date: Wed, 24 Feb 2010 21:44:13 +0000 Subject: [PATCH] changes --- .../Recovery/FileSystem/recovery/FileSystem.java | 10 +++++++--- .../Recovery/SpamFilter/recovery/SpamFilter.java | 7 ++++++- Robust/src/Benchmarks/Recovery/bm_args.txt | 2 +- Robust/src/Benchmarks/Recovery/runjava.sh | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Robust/src/Benchmarks/Recovery/FileSystem/recovery/FileSystem.java b/Robust/src/Benchmarks/Recovery/FileSystem/recovery/FileSystem.java index 3c0778c6..071b42ab 100644 --- a/Robust/src/Benchmarks/Recovery/FileSystem/recovery/FileSystem.java +++ b/Robust/src/Benchmarks/Recovery/FileSystem/recovery/FileSystem.java @@ -83,9 +83,12 @@ public class FileSystem extends Thread { file = inputfile.toLocalString(); } - LinkedList todoList = new LinkedList(); + LinkedList todoList = new LinkedList(); fillTodoList(file, todoList); + long st = System.currentTimeMillis(); + long fi; + while (!todoList.isEmpty()) { t = (Transaction)(todoList.removeFirst()); @@ -132,6 +135,8 @@ public class FileSystem extends Thread { } } + fi = System.currentTimeMillis(); + sleep(3000000); atomic { output(); @@ -139,8 +144,7 @@ public class FileSystem extends Thread { RecoveryStat.printRecoveryStat(); - - System.out.println("\n\n\n I'm done\n\n\n"); + System.out.println("\n\n\n I'm done - Time Elapse : "+ ((double)(fi-st)/1000) + "\n\n\n"); while(true) { sleep(100000); diff --git a/Robust/src/Benchmarks/Recovery/SpamFilter/recovery/SpamFilter.java b/Robust/src/Benchmarks/Recovery/SpamFilter/recovery/SpamFilter.java index a04fa60e..2bed4b34 100644 --- a/Robust/src/Benchmarks/Recovery/SpamFilter/recovery/SpamFilter.java +++ b/Robust/src/Benchmarks/Recovery/SpamFilter/recovery/SpamFilter.java @@ -46,6 +46,9 @@ public class SpamFilter extends Thread { Random rand = new Random(thid); int i; + long st = System.currentTimeMillis(); + long fi; + for(i=0; i