'Called after task fetched'

def on_result(self, type, task, result):

    status_code = result.get(u'status_code', 599)
    if (status_code != 599):
        status_code = ((int(status_code) / 100) * 100)
    self._cnt[u'5m'].event((task.get(u'project'), status_code), (+ 1))
    self._cnt[u'1h'].event((task.get(u'project'), status_code), (+ 1))
    if ((type in (u'http', u'phantomjs')) and result.get(u'time')):
        content_len = len(result.get(u'content', u''))
        self._cnt[u'5m'].event((task.get(u'project'), u'speed'), (float(content_len) / result.get(u'time')))
        self._cnt[u'1h'].event((task.get(u'project'), u'speed'), (float(content_len) / result.get(u'time')))
        self._cnt[u'5m'].event((task.get(u'project'), u'time'), result.get(u'time'))
        self._cnt[u'1h'].event((task.get(u'project'), u'time'), result.get(u'time'))
