The alkene (olefin) has overall priority in the molecule starting from C-1. One methyl is on C-1 and then counting in the direction across the double bond is C-2, C-3, C-4 and then C-5 (with the other methyl). So as Yggdrasil said 1,5-dimethylcyclopentene. Or 1,5-dimethylcyclopent-1-ene for clarification.