fix reported build time unit

This commit is contained in:
Patrick Schratz 2024-07-25 10:56:02 +02:00
commit 8c092af8b9
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -186,7 +186,7 @@ build_single_tag <- function(
cli::cli_alert("{.fun build_single_tag}: (3/3) Removing {.path {local_clone_dir_single}}.")
unlink(local_clone_dir_single, force = TRUE, recursive = TRUE)
total_build_time <- round(Sys.time() - t1, 2)
total_build_time <- round(difftime(Sys.time(), t1, units = "secs"), 2)
# skip DB connection if package already exists
if (file.exists(sprintf("%s/%s_%s.tar.gz", dir_out_bin, package_name, tag))) {