qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/2] Add documentation for qemu_progres_print()


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 1/2] Add documentation for qemu_progres_print()
Date: Thu, 12 May 2011 18:04:44 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.10

On 05/06/2011 06:10 PM, Markus Armbruster wrote:
Here's my try:

/*
  * Report progress.
  * @percent is how much progress we made.
  * If @max is zero, @percent is how much of the job is done.
  * Else, @percent is a progress delta since the last call, as a fraction
  * of @max.  I.e. delta is @percent * @max / 100.  This is for
  * convenience, it lets you account for @max% of the total work in some
  * function, and still count @percent from 0 to 100.
  */

My personal preference is to use fractions of 1 in the code and only covert to percentages during actual output.

--
error compiling committee.c: too many arguments to function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]