async def METHOD_NAME(connection, prev):
    info = await run_cmd(connection, "info", "stats")
    if info is not None:
        if info['defrag_task_invocation_total'] != prev:
            print("--------------------------------------------------------------")
            print(f"defrag_task_invocation_total: {info['defrag_task_invocation_total']:,}")
            print(f"defrag_realloc_total: {info['defrag_realloc_total']:,}")
            print(f"defrag_attempt_total: {info['defrag_attempt_total']:,}")
            print("--------------------------------------------------------------")
            if info["defrag_realloc_total"] > 0:
                return True, None
            return False, info['defrag_task_invocation_total']
    return False, None