* grub-core/lib/progress.c (grub_file_progress_hook_real): Use

divmod64 for offset division.
This commit is contained in:
Vladimir Serbinenko 2013-10-23 17:34:49 +02:00
parent 863c590b1e
commit 238f048987
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/progress.c (grub_file_progress_hook_real): Use
divmod64 for offset division.
2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Rename .bzrignore to .gitignore. Add "*.o" rule.

View file

@ -57,7 +57,7 @@ grub_file_progress_hook_real (grub_disk_addr_t sector __attribute__ ((unused)),
partial_file_name,
grub_get_human_size (file->progress_offset,
GRUB_HUMAN_SIZE_NORMAL),
(100 * file->progress_offset) / file->size);
grub_divmod64 (100 * file->progress_offset, file->size, 0));
char *ptr = buffer + grub_strlen (buffer);
grub_snprintf (ptr, sizeof (buffer) - (ptr - buffer), "%s ]",