Quantcast

Print timespans in a prettier way.

Johnny C. Lam [11-10-13 - 00:29]
Print timespans in a prettier way.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1135 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleTimeSpan.lua
diff --git a/OvaleTimeSpan.lua b/OvaleTimeSpan.lua
index 4e78cc4..56eb448 100644
--- a/OvaleTimeSpan.lua
+++ b/OvaleTimeSpan.lua
@@ -27,6 +27,7 @@ Ovale.OvaleTimeSpan = OvaleTimeSpan
 --<private-static-properties>
 --local debugprint = print
 local setmetatable = setmetatable
+local strformat = string.format
 local tconcat = table.concat
 local wipe = table.wipe
 --</private-static-properties>
@@ -83,7 +84,7 @@ function OvaleTimeSpan:__tostring()
 	if not self or #self == 0 then
 		return "empty set"
 	else
-		return tconcat(self, ", ")
+		return strformat("(%s)", tconcat(self, ", "))
 	end
 end