in reply to Strange math issue with Net::SFTP

For debug purposes, replace your sub with:
sub callback { my ( $sftp, $data, $offset, $size ) = @_; my $percent = ($offset/$size)*100; print "offset=$offset\n"; print "size=$size\n"; print "percent=$percent\n"; }
Then post your results.

Replies are listed 'Best First'.
Re^2: Strange math issue with Net::SFTP
by vendion (Scribe) on May 29, 2012 at 16:54 UTC

    After making the change to my callback sub here is the output:


    Side note anyone know why the readmore tag does not preserve newlines like the code tag?

      Side note anyone know why the readmore tag does not preserve newlines like the code tag?
      readmore is just for hiding. You can nest code tags inside readmore:
      <readmore> <code> </code> </readmore>

        Thanks, I'll keep that in mind