Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processed_count and cumulative_count values are incorrect #21

Open
nhinze opened this issue Jun 6, 2017 · 0 comments
Open

processed_count and cumulative_count values are incorrect #21

nhinze opened this issue Jun 6, 2017 · 0 comments
Assignees

Comments

@nhinze
Copy link

nhinze commented Jun 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants