connections_data.start previously had the type time_t, but time_t
only had a precision for seconds. NTTIME has a higer precision,
which is useful for debugging.
Signed-off-by: Jule Anger <janger@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
data.gid = sess.gid;
fstrcpy(data.addr, sess.addr);
fstrcpy(data.machine, sess.machine);
- data.start = nt_time_to_unix(global->creation_time);
+ data.start = global->creation_time;
data.encryption_flags = global->encryption_flags;
data.cipher = sess.cipher;
data.dialect = sess.dialect;
fstring servicename;
fstring addr;
fstring machine;
- time_t start;
+ NTTIME start;
uint8_t encryption_flags;
uint16_t cipher;
uint16_t dialect;
d_printf("%-10.10s %s %-12s %s",
crec->servicename, server_id_str_buf(crec->pid, &tmp),
crec->machine,
- time_to_asc(crec->start));
+ time_to_asc(nt_time_to_unix(crec->start)));
return 0;
}
guest ? "" : gidtoname(ids->entries[i].gid),
crec->machine,
guest ? "" : ids->entries[i].hostname,
- time_to_asc(crec->start));
+ time_to_asc(nt_time_to_unix(crec->start)));
return 0;
}
return 0;
}
- timestr = timestring(tmp_ctx, crec->start);
+ timestr = timestring(tmp_ctx, nt_time_to_unix(crec->start));
if (timestr == NULL) {
TALLOC_FREE(tmp_ctx);
return -1;