FU: Use CLOCK_MONOTONIC for timing

This commit is contained in:
Yorhel 2025-04-07 16:41:29 +02:00
parent e7a9f165de
commit 196b1cc3ce
2 changed files with 5 additions and 5 deletions

View file

@ -342,7 +342,7 @@ sub save {
return;
};
my $line = sprintf "%d %f %s %s %s\n",
time, time - $FU::REQ->{trace_start}, $FU::REQ->{status},
time, $FU::REQ->{trace_end} - $FU::REQ->{trace_start}, $FU::REQ->{status},
fu->method, fu->path.(fu->query?'?'.fu->query:'');
utf8::encode($line);
print $fh $line;