qvm-copy-to-vm2.kde: calculate size of sparse files correctly

Este commit está contenido en:
Rafal Wojtczuk 2011-03-30 10:30:27 +02:00
padre 0851d12be9
commit d82c597c82

Ver fichero

@ -23,7 +23,7 @@
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
if [ X$VM = X ] ; then exit 0 ; fi
SIZE=$(du -c "$@" | tail -1 | cut -f 1)
SIZE=$(du --apparent-size -c "$@" | tail -1 | cut -f 1)
REF=$(kdialog --progressbar "Copy progress")
qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE