* [gentoo-commits] proj/qemu-kvm:qemu-kvm-1.2.0-gentoo commit in: include/qemu/
@ 2013-01-19 2:27 Doug Goldstein
0 siblings, 0 replies; only message in thread
From: Doug Goldstein @ 2013-01-19 2:27 UTC (permalink / raw
To: gentoo-commits
commit: 007ea40269798ae0d3f493f79b3e9bcc2e3a7b2c
Author: Dietmar Maurer <dietmar <AT> proxmox <DOT> com>
AuthorDate: Wed Oct 24 10:10:47 2012 +0000
Commit: Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Thu Dec 13 21:32:00 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qemu-kvm.git;a=commit;h=007ea402
stream: fix ratelimit_set_speed
The formula to compute slice_quota was wrong since commit 6ef228fc.
Signed-off-by: Dietmar Maurer <dietmar <AT> proxmox.com>
Reviewed-by: Eric Blake <eblake <AT> redhat.com>
Signed-off-by: Kevin Wolf <kwolf <AT> redhat.com>
(cherry picked from commit e3980e28bb888bf643054770452998d1b4319609)
Signed-off-by: Michael Roth <mdroth <AT> linux.vnet.ibm.com>
(cherry picked from commit 178ef3a43ad24d074c683e2fe0658e589747c823)
---
include/qemu/ratelimit.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/qemu/ratelimit.h b/include/qemu/ratelimit.h
index c6ac281..d1610f1 100644
--- a/include/qemu/ratelimit.h
+++ b/include/qemu/ratelimit.h
@@ -42,7 +42,7 @@ static inline void ratelimit_set_speed(RateLimit *limit, uint64_t speed,
uint64_t slice_ns)
{
limit->slice_ns = slice_ns;
- limit->slice_quota = ((double)speed * 1000000000ULL) / slice_ns;
+ limit->slice_quota = ((double)speed * slice_ns)/1000000000ULL;
}
#endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-19 2:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-19 2:27 [gentoo-commits] proj/qemu-kvm:qemu-kvm-1.2.0-gentoo commit in: include/qemu/ Doug Goldstein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox