Is your VPS (virus database) updated?
Which is your OS? What version of avast do you have?
Which file was infected?
Finally, what was your sensibility (Normal or High) when that occured?