error fix
authorjihoonl <jihoonl>
Fri, 8 Jan 2010 00:56:26 +0000 (00:56 +0000)
committerjihoonl <jihoonl>
Fri, 8 Jan 2010 00:56:26 +0000 (00:56 +0000)
Robust/src/Runtime/DSTM/interface_recovery/trans.c
Robust/src/Runtime/runtime.c

index 2c311720ebaef37dca256a054150588819a30b95..fac3777bfe22c32afb6655fccc688945a6d1b408 100644 (file)
@@ -117,8 +117,8 @@ int paxosRound;
  * Global variables for Recovery stats
  **************************************/
 int numRecovery=0;
-unsigned int deadMachine[8]={0,0,0,0,0,0,0,0};
-unsigned double elapsedTime[8] ={0,0,0,0,0,0,0,0};
+unsigned int deadMachine[8] ={ 0,0,0,0,0,0,0,0};
+double elapsedTime[8] = {0,0,0,0,0,0,0,0};
 #endif
 
 #endif
index ab12a978c7e054616f693dead484147ed87cc64b..722b2dfd34fcf1724b3e18b38a186cc43da30b8d 100644 (file)
@@ -16,7 +16,7 @@
   extern int numRecovery;
   extern unsigned int deadMachine[8];
   extern unsigned int sizeOfRedupedData[8];
-  extern double elapsedtime[8];
+  extern double elapsedTime[8];
 #endif
   
 #else
@@ -232,9 +232,9 @@ void CALL02(___System______deepArrayCopy____L___Object____L___Object___, struct
 
 void CALL11(___System______exit____I,int ___status___, int ___status___) {
 #ifdef RECOVERYSTATS
-  for(int i=0; i < numRecovery; i++) {
-    printf("Dead Machine = %s\n",midtoIPString(deadThread[i]));
-    printf("sizeOfRedupedData = %u\n",sizeOfRedupedData[i]);
+  int i=0;
+  for(i=0; i < numRecovery; i++) {
+    printf("Dead Machine = %s\n",midtoIPString(deadMachine[i]));
     printf("Elapsed Time = %.2f\n",elapsedTime[i]);
   }
 #endif