profile: Fix rusage reporting
commite3b4073d3c7c50e63f2214912d091264c8c94035
authorVolker Lendecke <vl@samba.org>
Fri, 24 Nov 2023 15:27:42 +0000 (24 16:27 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 19 Dec 2023 16:05:36 +0000 (19 16:05 +0000)
treefdda355f415859067aea2df13582a663ea721fb1
parent8c08b70503e8168a864db2d612b247c853821fd0
profile: Fix rusage reporting

getrusage already gives accumulated values, so add them to the tdb
record after smbprofile_stats_accumulate. Maybe we should not zero out
our internal copy after writing the tdb, this would save a call to
smbprofile_stats_accumulate() once a second.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/profile/profile.c