I created a report to sum the number of hours, minutes, seconds an agent is in a specific status. I have a formula created that will add correctly, however, the seconds will show as only 1 digit vs 2.
Example: Total 255:13:1
Should be: Total 255:13:01
When it is a 2 digit number, it shows up fine. Here is my formula:
replace(cstr(floor(Sum({AgentActivityLog.StateDuration})/3600)),".00","")
+":"+replace(cstr(floor((Sum({AgentActivityLog.StateDuration})mod 3600)/60)),".00","")
+":"+replace(cstr(floor(Sum({AgentActivityLog.StateDuration})mod 60)),".00","")
Any help is appreciated. Thanks!