-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I'm trying to use processed_count, cumulative_count and total_count valuers of sync_notify to created a progress bar. However, the values are incorrect for processed_count and cumulative_count.
processed_count is always equal to total_count
cumulative_count is 2000 or less.
def sync_notify
status'] ? @params['status'] : ""
puts @params['processed_count']
puts @params['cumulative_count']
puts @params['total_count']
status_percent = (@params['cumulative_count'].to_f / @params['total_count'].to_f * 100.0).round.to_s + "%"
puts status_percent
status += " : " + status_percent
# un-comment to show a debug status pop-up
Rho::Notification.showStatus( "Status", "#{@params['source_name']} : #{status}", Rho::RhoMessages.get_message('hide'))
end
Log:
processed_count = 11815
cumulative_count = 2000
total_count = 11815
processed_count = 11815
cumulative_count = 2000
total_count = 11815
...
processed_count = 11815
cumulative_count = 1815
total_count = 11815
I'm using Rhodes 5.5.0.29 and Rhoconnect-Client 5.5.0.29
Metadata
Metadata
Assignees
Labels
No labels