fix the linux io counter
diff --git a/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/io/profiling/IOCounterLinux.java b/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/io/profiling/IOCounterLinux.java
index 6c0caf0..589857b 100644
--- a/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/io/profiling/IOCounterLinux.java
+++ b/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/io/profiling/IOCounterLinux.java
@@ -30,11 +30,11 @@
try {
long reads = extractColumn(4);
return reads;
- } catch (Exception e) {
+ } catch (IOException e) {
try {
long reads = extractRow(4);
return reads / PAGE_SIZE;
- } catch (Exception e2) {
+ } catch (IOException e2) {
return 0;
}
}
@@ -45,12 +45,12 @@
try {
long writes = extractColumn(5);
return writes;
- } catch (Exception e) {
+ } catch (IOException e) {
try {
long writes = extractRow(5);
long cancelledWrites = extractRow(6);
return (writes - cancelledWrites) / PAGE_SIZE;
- } catch (Exception e2) {
+ } catch (IOException e2) {
return 0;
}
}
@@ -64,6 +64,7 @@
while ((line = reader.readLine()) != null) {
if (line.contains("Blk_read")) {
device = true;
+ continue;
}
if (device == true) {
StringTokenizer tokenizer = new StringTokenizer(line);