mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Unexport ticks_per_sec variable. Create get_ticks_per_sec() function
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b03b2e48cb
commit
6ee093c907
44 changed files with 130 additions and 113 deletions
2
net.c
2
net.c
|
@ -2254,7 +2254,7 @@ static ssize_t dump_receive(VLANClientState *vc, const uint8_t *buf, size_t size
|
|||
return size;
|
||||
}
|
||||
|
||||
ts = muldiv64(qemu_get_clock(vm_clock), 1000000, ticks_per_sec);
|
||||
ts = muldiv64(qemu_get_clock(vm_clock), 1000000, get_ticks_per_sec());
|
||||
caplen = size > s->pcap_caplen ? s->pcap_caplen : size;
|
||||
|
||||
hdr.ts.tv_sec = ts / 1000000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue