Replace gettimeofday with time to fix deprecation (#5460)

This commit is contained in:
Vaalyn 2022-06-05 01:08:56 +02:00 committed by GitHub
parent 155c56a605
commit 24d2a728f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1084,7 +1084,7 @@ class ConfigWriter implements EventSubscriberInterface
$event->appendBlock(
<<<LS
def hls_segment_name(~position,~extname,stream_name) =
timestamp = int_of_float(gettimeofday())
timestamp = int_of_float(time())
duration = 4
"#{stream_name}_#{duration}_#{timestamp}_#{position}.#{extname}"
end