Strabon

changeset 774:527cfbdcf5a3 temporals

Fix (iteration)
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Fri Dec 07 19:16:41 2012 +0200 (2012-12-07)
parents 20246a8b5544
children 07471ffabaca
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java runtime/src/main/java/eu/earthobservatory/utils/ExperimentsReal.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Fri Dec 07 19:03:05 2012 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Fri Dec 07 19:16:41 2012 +0200
     1.3 @@ -255,7 +255,7 @@
     1.4  				long t2 = System.nanoTime();
     1.5  				
     1.6  				while (result.hasNext()) {
     1.7 -					String r = result.toString();
     1.8 +					String r = result.next().toString();
     1.9  					results++;
    1.10  				}
    1.11  				
     2.1 --- a/runtime/src/main/java/eu/earthobservatory/utils/ExperimentsReal.java	Fri Dec 07 19:03:05 2012 +0200
     2.2 +++ b/runtime/src/main/java/eu/earthobservatory/utils/ExperimentsReal.java	Fri Dec 07 19:16:41 2012 +0200
     2.3 @@ -83,8 +83,7 @@
     2.4  					strabon = null;
     2.5  					
     2.6  					URL script = Main.class.getResource("/pg_restart_clear_caches.sh");
     2.7 -					String restart_script = script.toString().substring(5);
     2.8 -					
     2.9 +					String restart_script = script.toString().substring(5);					
    2.10  					Process p = Runtime.getRuntime().exec(restart_script);
    2.11  					p.waitFor();
    2.12  					System.gc();