Hey guys !

I'm trying to setup some icons with Weakaura.

My goal is to have a spell with the GCD "swipe", and the cooldown progress.

On my Trigger, I've checked "Show Global Cooldown";

I then used a custom function to show remaining CD

function(_, duration, progress)
    return duration > 1.5 and progress or ""
This allow me to have the GCD swipe and the remaining cooldown, but my problem is that the remaining cooldown is set with format "12.3" instead of "12"

Is there a way to change the custom function to have this format ?

I need to use the custom function, as the %p parameters show the remaining cooldown of the GCD

Thanks for the help !