Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/bin Modified Files: evfs_server_handle.c Log Message: * Fix a segv occurring on directory-list-after-file-copy =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- evfs_server_handle.c 15 Nov 2005 09:58:53 -0000 1.16 +++ evfs_server_handle.c 15 Nov 2005 10:33:41 -0000 1.17 @@ -152,6 +152,7 @@ long read_write_bytes = 0; static struct stat file_stat; int progress = 0; + int last_notify_progress = 0; evfs_filereference* ref = NEW(evfs_filereference); printf ("At test handler\n"); @@ -188,9 +189,10 @@ (*dst_plugin->functions->evfs_file_write)(command->file_command.files[1], bytes, read_write_bytes ); - progress = count / file_stat.st_size * 100; - if (progress % 5 == 0) { + progress = (double)((double)count / (double)file_stat.st_size * 100); + if (progress % 5 == 0 && last_notify_progress < progress) { printf ("Percent complete: %d\n", progress); + last_notify_progress = progress; } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs