Gtk.ProgressBar.prototype.get_fraction

function get_fraction():Number {
    // Gjs wrapper for gtk_progress_bar_get_fraction()
}

Returns the current fraction of the task that's been completed.

Returns

a fraction from 0.0 to 1.0