def adapt_format(item):
    """Javascript expects timestamps to be in milliseconds
       and counter values as floats

    Args
        item (list): List of 2 elements, timestamp and counter

    Return:
        Normalized tuple (timestamp in js expected time, counter as float)

    """
    timestamp = int(item[0])
    counter_value = item[1]
    return [timestamp*1000, float(counter_value)]