Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/bin
Modified Files:
evfs_server_handle.c
Log Message:
* Oops - I broke samba directory list in recent EET migration
* Start of a progress event for file transfers
* Commit latest version of John Kha's FTP Plugin
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- evfs_server_handle.c 9 Nov 2005 23:51:05 -0000 1.15
+++ evfs_server_handle.c 15 Nov 2005 09:58:53 -0000 1.16
@@ -151,6 +151,7 @@
long count;
long read_write_bytes = 0;
static struct stat file_stat;
+ int progress = 0;
evfs_filereference* ref = NEW(evfs_filereference);
printf ("At test handler\n");
@@ -187,6 +188,11 @@
(*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) {
+ printf ("Percent complete: %d\n", progress);
+ }
+
count+= COPY_BLOCKSIZE;
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs