def set_stats_windows(config):
    """Set window sizes for averaging stats."""
    windows = config["settings"].get("stats_windows", 0.1)
    if not isinstance(windows, list):
        windows = [windows]
    if not 1 in windows:
        windows.append(1)
    return windows