Nigeria , Africa 's top producer , has been forced to curb its output by 500,000 barrels a day , or about 20 percent of the country 's usual total , because of violence in the Niger Delta since the beginning of the year .