Fix comparison of number against array
Fix comparison of number against array

last_graphite_metric returns the last datapoint as a list of up to count
datapoint [value, timeseries] pairs; where count is 1. Thus we get
following back:
{target => [[value, timestamp]], ...}

the code was treating this instead as a single datapoint pair, not a
list of datapoint pairs, resulting in checking number < list

instead use last_graphite_value which returns the mean of all values
returned by last_graphite_metric as a single value, giving us instead
{target => mean} where again count=1

dalesit/sensu-plugins-graphite