Update downsampling_agent.cpp