From d3e746ad10f7dc4e54cfd382b4825e77b2916186 Mon Sep 17 00:00:00 2001
From: Quentin Smith <quentin@mit.edu>
Date: Wed, 29 Dec 2010 02:23:20 -0500
Subject: [PATCH] Show historical domain CPU usage if available.

---
 code/templates/info.mako |    5 +++++
 debian/changelog         |    6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/code/templates/info.mako b/code/templates/info.mako
index 998b73e..9628e70 100644
--- a/code/templates/info.mako
+++ b/code/templates/info.mako
@@ -12,6 +12,11 @@ Info on ${machine.name}
   <tr><td>${key}:</td><td>${value}</td></tr>
   % endfor
 </table>
+% if on:
+ % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]:
+  <img src="${config.monitoring[0].baseuri}usage.cgi?type=cpu;uuid=${machine.uuid}" alt="Domain CPU usage" />
+ % endif
+% endif
 </%def>
 
 <%def name="commands()">
diff --git a/debian/changelog b/debian/changelog
index 1601e30..019681f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+invirt-web (0.1.16) unstable; urgency=low
+
+  * Show historical domain CPU usage if available.
+
+ -- Quentin Smith <quentin@mit.edu>  Wed, 29 Dec 2010 02:23:10 -0500
+
 invirt-web (0.1.15) unstable; urgency=low
 
   * Add support for amd64 debathena lucid autoinstalls.
-- 
1.7.9.5