projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nanosecond: initial commit changing timeval to timespec
[fio.git]
/
iolog.c
diff --git
a/iolog.c
b/iolog.c
index 01b82e8dc16b47cab2feef017d7bd60e6b7d49ef..45a95aa410e3fc11c4a8c6c6f6f8b2cca69dba4a 100644
(file)
--- a/
iolog.c
+++ b/
iolog.c
@@
-65,7
+65,7
@@
static void iolog_delay(struct thread_data *td, unsigned long delay)
{
uint64_t usec = utime_since_now(&td->last_issue);
uint64_t this_delay;
{
uint64_t usec = utime_since_now(&td->last_issue);
uint64_t this_delay;
- struct time
val tv
;
+ struct time
spec ts
;
if (delay < td->time_offset) {
td->time_offset = 0;
if (delay < td->time_offset) {
td->time_offset = 0;
@@
-78,7
+78,7
@@
static void iolog_delay(struct thread_data *td, unsigned long delay)
delay -= usec;
delay -= usec;
- fio_gettime(&t
v
, NULL);
+ fio_gettime(&t
s
, NULL);
while (delay && !td->terminate) {
this_delay = delay;
if (this_delay > 500000)
while (delay && !td->terminate) {
this_delay = delay;
if (this_delay > 500000)
@@
-88,7
+88,7
@@
static void iolog_delay(struct thread_data *td, unsigned long delay)
delay -= this_delay;
}
delay -= this_delay;
}
- usec = utime_since_now(&t
v
);
+ usec = utime_since_now(&t
s
);
if (usec > delay)
td->time_offset = usec - delay;
else
if (usec > delay)
td->time_offset = usec - delay;
else