def flotify(result, num=50):
    """
    Return a list of (timestamp, duration) sets for test result.
    """
    results = list(TestResult.objects.filter(test=result.test, site=result.site)[:num])
    results.reverse()
    return [[get_timestamp(result.run_date), result.duration/1000] for result in results]
Return a list of (timestamp, duration) sets for test result.