Skip to contentSkip to conversation

monitor: Remove left-over code in do_info_profile.

PATCH Applied Hani Benhabiles 2 participants 2 messages Feb 26, 2014 – Feb 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monitor: Remove left-over code in do_info_profile.

This is a left-over from 4a1418e.

---
 monitor.c | 4 ----
 1 file changed, 4 deletions(-)
monitor.c +0 -4
index aebcbd8..3863d83 100644
@@ -2021,10 +2021,6 @@ int64_t dev_time;
 
 static void do_info_profile(Monitor *mon, const QDict *qdict)
 {
-    int64_t total;
-    total = qemu_time;
-    if (total == 0)
-        total = 1;
     monitor_printf(mon, "async time  %" PRId64 " (%0.3f)\n",
                    dev_time, dev_time / (double)get_ticks_per_sec());
     monitor_printf(mon, "qemu time   %" PRId64 " (%0.3f)\n",
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 3 lines · On Wed, 26 Feb 2014 23:09:52 +0100 Hani Benhabiles <[email protected]> wrote:

This is a left-over from 4a1418e.

Applied to the qmp branch, thanks.

Quoted 19 lines
---
 monitor.c | 4 ----
 1 file changed, 4 deletions(-)
monitor.c +0 -4
index aebcbd8..3863d83 100644
@@ -2021,10 +2021,6 @@ int64_t dev_time;
 
 static void do_info_profile(Monitor *mon, const QDict *qdict)
 {
-    int64_t total;
-    total = qemu_time;
-    if (total == 0)
-        total = 1;
     monitor_printf(mon, "async time  %" PRId64 " (%0.3f)\n",
                    dev_time, dev_time / (double)get_ticks_per_sec());
     monitor_printf(mon, "qemu time   %" PRId64 " (%0.3f)\n",