Skip to content

Commit

Permalink
Fix SimpleStatusTool using the wrong field
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrugler committed Apr 17, 2012
1 parent 24c09b3 commit a8b5d1d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -57,10 +57,10 @@ private static void processStatus(JobConf conf, Path curDirPath) throws IOExcept
TupleEntry entry = iter.next();
totalEntries += 1;

// STATUS_FN, HEADERS_FN, EXCEPTION_FN, STATUS_TIME_FN, HOST_ADDRESS_FN).append(getSuperFields(StatusDatum.class)
// URL_FN, STATUS_FN, HEADERS_FN, EXCEPTION_FN, STATUS_TIME_FN, HOST_ADDRESS_FN).append(getSuperFields(StatusDatum.class)
String statusLine = entry.getString("line");
String[] pieces = statusLine.split("\t");
UrlStatus status = UrlStatus.valueOf(pieces[0]);
UrlStatus status = UrlStatus.valueOf(pieces[1]);
statusCounts[status.ordinal()] += 1;
}

Expand Down

0 comments on commit a8b5d1d

Please sign in to comment.