showmood: fix item count for real

develop
jj 2014-01-27 12:40:21 +01:00
parent 7f411e1cbf
commit c0d3e9189d
1 changed files with 7 additions and 1 deletions

@ -169,7 +169,13 @@ command_result df_showmood (color_ostream &out, vector <string> & parameters)
// total amount of stuff fetched so far // total amount of stuff fetched so far
int count_got = 0; int count_got = 0;
for (size_t i = 0; i < job->items.size(); i++) for (size_t i = 0; i < job->items.size(); i++)
count_got += 1; // XXX thread may need job->items[i]->item->getTotalDimension() {
df::item_type type = job->job_items[i]->item_type;
if (type == item_type::BAR || type == item_type::CLOTH)
count_got += job->items[i]->item->getTotalDimension();
else
count_got += 1;
}
for (size_t i = 0; i < job->job_items.size(); i++) for (size_t i = 0; i < job->job_items.size(); i++)
{ {