Skip to content
Discussion options

You must be logged in to vote

Here is how to change that

diff --git a/scripts/uosc_shared/lib/utils.lua b/scripts/uosc_shared/lib/utils.lua
index 4eecddc..9847664 100644
--- a/scripts/uosc_shared/lib/utils.lua
+++ b/scripts/uosc_shared/lib/utils.lua
@@ -217,14 +217,6 @@ function format_time(seconds, max_seconds)
 		local formatted = string.format('%.' .. options.time_precision .. 'f', math.abs(seconds) % 1)
 		human = human .. '.' .. string.sub(formatted, 3)
 	end
-	if max_seconds then
-		local trim_length = (max_seconds < 60 and 7 or (max_seconds < 3600 and 4 or 0))
-		if trim_length > 0 then
-			local has_minus = seconds < 0
-			human = string.sub(human, trim_length + (has_minus and 1 or 0))
-			if has_minus then hu…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
8 replies
@ElvioG
Comment options

@tomasklaen
Comment options

@ElvioG
Comment options

@christoph-heinrich
Comment options

Answer selected by ElvioG
@ElvioG
Comment options

Comment options

You must be logged in to vote
3 replies
@tomasklaen
Comment options

@bananakid
Comment options

@tomasklaen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants