This commit is contained in:
Sławosz
2013-08-28 18:10:07 +02:00
parent 54a3d73a98
commit db369cfc89
+2 -2
View File
@@ -43,8 +43,8 @@ func (s *RequestStat) IncResp(resp *HttpResponse) {
// Updated stats timestamp to current time and reset to zero all stats values
// TODO: Further on reset it should write stats to file
func (s *RequestStat) reset() {
if s.timestamp != 0 {
Debug("Host:", s.host.Url, "Requests:", s.Count, "Errors:", s.Errors, "Status codes:", s.Codes)
if s.timestamp != 0 {
Debug("Host:", s.host.Url, "Requests:", s.Count, "Errors:", s.Errors, "Status codes:", s.Codes)
}
s.timestamp = time.Now().Unix()