If we have two positive, decreasing functions $f,g:[a,\infty)\to\mathbb{R}$ such that $$\int_{a}^{\infty}f(x)\text{d}x<\infty\;\;\;\text{and}\;\;\;\int_{a}^{\infty}g(x)\text{d}x=\infty$$ can we infer that there exists a function $\widehat{f}$ with $\widehat{f}(x)=f(x)$ for almost all $x$, such that we have $\lim_{x\to\infty}\frac{\widehat{f}(x)}{g(x)}=0$?
Generally $\lim_{x\to\infty}\frac{f(x)}{g(x)}=0$ does not hold, a counterexample was provided here. But in this counterexample one can also choose a null set $A$, so that for $\widehat{f}:= f\mathbb{1}_{A^C}$ we have $\lim_{x\to\infty}\frac{\widehat{f}(x)}{g(x)}=0$.