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

Re: [Xen-devel] [PATCH v2] xenbaked.c: Avoid divide by zero issue



On Wed, Mar 14, 2018 at 10:14:03AM -0700, Joe Jin wrote:
> xenbaked.c -> dump_stats(), run_time = time(&end_time) - time(&start_time),
> time() returns the value in seconds. If one cancels xenmon.py immediately
> after started, run_time can be zero, and then xenbaked will hit divide by
> zero fault.
> 
> Signed-off-by: Joe Jin <joe.jin@xxxxxxxxxx>
> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.