Commit eed69bb0 authored by Leigh B Stoller's avatar Leigh B Stoller

Handle whacky forecast info that is causing free counts table to be

parent 1422e37b
......@@ -160,7 +160,16 @@ $(function ()
// This is an array of objects.
var array = forecast[type];
// We want the first stime stamp, but there might be
// multiple entries for that time stamp, so scan foward
// to find the last one.
var data = array[0];
for (var i in array) {
var datum = array[i];
if (datum.t == data.t) {
data = datum;
var free = parseInt( + parseInt(data.held);
html +=
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment