Skip to content

Commit e43fab8

Browse files
round 1 digit of percentage diff
1 parent cc7bf7a commit e43fab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

touchstone/script.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ tbl <- timings %>%
2323
dplyr::summarise(m = mean(.data$elapsed)) %>%
2424
tibble::deframe()
2525

26-
diff_percent <- round(100 * (tbl[refs[2]] - tbl[refs[1]]) / tbl[refs[1]])
26+
diff_percent <- round(100 * (tbl[refs[2]] - tbl[refs[1]]) / tbl[refs[1]], 1)
2727
writeLines(glue::glue("{round(tbl[refs[1]], 2)} -> {round(tbl[refs[2]], 2)} ({diff_percent}%)"), "touchstone/pr-comment/info.txt")

0 commit comments

Comments
 (0)