Correctif temps calcul

This commit is contained in:
2026-06-11 11:47:02 +02:00
parent 699d976c80
commit e197688a4b
+4 -4
View File
@@ -84,11 +84,11 @@ maj_ecow_for_list_cheptels <- function(list_cheptels){
return(res) return(res)
} }
format_duration <- function(seconds) { format_duration <- function(seconds) {
h <- seconds %/% 3600 h <- as.integer(seconds %/% 3600)
m <- (seconds %% 3600) %/% 60 m <- as.integer((seconds %% 3600) %/% 60)
s <- seconds %% 60 s <- as.integer(seconds %% 60)
sprintf("%02d:%02d:%02d", h, m, s) sprintf("%02d:%02d:%02d", h, m, s)
} }