Ni3Al and Ni3Ga are closely related materials on opposite sides of a ferromagnetic quantum critical point. The Stoner factor of Ni is virtually the same in both compounds and the density of states is larger in Ni3Ga. Thus in Stoner theory it should be more magnetic, and in local-density approximation (LDA) calculations it is. However, experimentally it is a paramagnet, while Ni3Al is an itinerant ferromagnet. We show that critical spin fluctuations are stronger in Ni3Ga, due to weaker q dependence of the susceptibility, and this effect is enough to reverse the trend. The approach combines LDA calculations with Landau theory and the fluctuation-dissipation theorem using the same momentum cutoff for both compounds. The calculations provide evidence for strong, beyond LDA, spin fluctuations associated with the critical point in both materials, but stronger in Ni3Ga than in Ni3Al.