scaled percentage value
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@718 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -570,7 +570,7 @@ int fujitsu_get_string_register (gpio_device *dev, int reg, char *s, int *length
|
||||
if (packet[0] == DC1)
|
||||
return (GP_ERROR);
|
||||
if (do_percent)
|
||||
gp_progress((float)x/(float)(*length));
|
||||
gp_progress(100.0*(float)x/(float)(*length));
|
||||
if (fujitsu_write_ack(dev)==GP_ERROR)
|
||||
return (GP_ERROR);
|
||||
packlength = ((unsigned char)packet[2]) +
|
||||
|
||||
Reference in New Issue
Block a user