Skip to content

Commit

Permalink
Fixes reporting for hard deletes and cleans up dunc's code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStonedOne committed Apr 29, 2016
1 parent 0ec8de7 commit aa6b320
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tools/Runtime Condenser/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,16 @@ bool readFromFile() {

//Found a hard del!
else if (currentLine.find("Path :") != std::string::npos) {
//this is pretty ugly but the alternative was implementing regex which I haven't the slightest idea how to do
//it takes advantage of the formatting of the line to extract the amount of failures
std::string tmp;
char c;
int failures;
std::stringstream ss(nextLine);
ss >> tmp >> c >> failures;
unsigned int failures = (unsigned int)strtoul(nextLine.substr(11).c_str(), NULL, 10);


totalHardDels += failures;
bool found = false;
for (int i=0; i < storedHardDel.size(); i++) {

//We've already encountered this
if (currentLine == storedHardDel[i]->type) {
storedHardDel[i]->type += failures;
storedHardDel[i]->count += failures;
found = true;
break;
}
Expand Down
Binary file modified tools/Runtime Condenser/RuntimeCondenser.exe
Binary file not shown.

0 comments on commit aa6b320

Please sign in to comment.