jamesgpearce / confess

[ARCHIVED] Uses PhantomJS to headlessly analyze web pages and generate manifests. You may be able to use the puppeteer-har package instead.
874 stars 101 forks source link

Checking resource.duration != initial in totalDuration sum #6

Open afharo opened 11 years ago

afharo commented 11 years ago

When a resource is not propperly loaded, it keeps its original value '-', so in the addition operation for totalDuration javascript treats it as a string and give as a result 'time1-time2-time3-...' which it shouldn't.

You can try this error using as url 'http://www.marca.com/'