praveenbankbazaar / httparchive

Automatically exported from code.google.com/p/httparchive
0 stars 0 forks source link

stats.bytesJson contains Nulls #367

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Just imported the most recent stats dump and it bytesJson seems to have lots of 
Nulls. Were they missed when the stats were calculated? Is the field still 
relevant? If so how should nulls be interpreted?

Original issue reported on code.google.com by charlie....@clark-consulting.eu on 18 Feb 2013 at 9:46

GoogleCodeExporter commented 9 years ago
bytesJson is not currently being calculated. Interpret "null" as "not 
available".

This seems like more of a question than bug. Maybe do an email to the mailing 
list first before entering a bug.

Original comment by stevesou...@gmail.com on 19 Feb 2013 at 8:35

GoogleCodeExporter commented 9 years ago
It's a bug that just does not fail in PHP:

$kb = formatSize($hStats['bytesJson'] + $hStats['bytesOther']);

charts.inc l.54

While this is silent in PHP which interprets NULL as 0, it will raise an 
exception in any strongly-typed environment because NULL is undefined. Hence, 
the question which was in no means intended as facetious.

Original comment by charlie....@clark-consulting.eu on 19 Feb 2013 at 9:02