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:
Scott Fritzinger
2000-07-19 23:30:58 +00:00
parent 0181d2323e
commit a355d3dce7

View File

@@ -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]) +