Consider a system in which the total force acting on the system consists of conservative forces $F'$ and frictional forces $f^i$, where $f^i$ depends on velocity. It is to show that for such a system the virial theorem holds in the form $$\overline{T}~=~-\frac{1}{2}\sum\overline{{F_i}'\cdot r_i}. \tag{1}$$
I defined a quantity $$G=\sum_i p_i\cdot r_i. \tag{2}$$ The total force on the system $$\dot{p_i}=F=F_i'+f_i.\tag{3}$$
Taking time derivative of $G$ and time averaging over limit $0$ to $\tau$. If the Time period is taken to be too large or periodic the time average of $\frac{dG}{dt}$ vanishes. To show the virial theorem holds, all I have to prove that the time average of $\sum{f_i.\dot{r_i}}$ over time period which goes to infinity or the system is periodic in $\tau$ is zero.
i.e, $$\frac{1}{\tau}\int_{0}^{\tau}{f_i(\dot{r_i})}.\dot{r_i}dt\tag{4}$$ is zero in the limit $\tau\to\infty$ or $\tau$ is periodic. But how can I prove it. For the simple case, If I take $f_i(\dot{r_i})=\dot{r}_i$, so the integral becomes, $$\frac{1}{\tau}\int_{0}^{\tau}{\dot{r_i}}^2dt\tag{5}$$ I don't know how to proceed from here.