Merge pull request #183 from darkfronza/PG-311_fix_user_and_system_cputime_zero_values

PG-311: Fix user/system cpu time zero values.
pull/185/head
Ibrar Ahmed 2022-02-21 17:33:06 +05:00 committed by GitHub
commit 613318d542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1359,8 +1359,8 @@ pgss_update_entry(pgssEntry *entry,
}
if (sys_info)
{
e->counters.sysinfo.utime += (int64)(sys_info->utime - e->counters.sysinfo.utime)/e->counters.calls.calls;
e->counters.sysinfo.stime += (int64)(sys_info->stime - e->counters.sysinfo.stime)/e->counters.calls.calls;
e->counters.sysinfo.utime += (sys_info->utime - e->counters.sysinfo.utime)/e->counters.calls.calls;
e->counters.sysinfo.stime += (sys_info->stime - e->counters.sysinfo.stime)/e->counters.calls.calls;
}
if (walusage)
{