* include/libvir.h src/libvir.c src/virsh.c: tweaking of the

GetInfo() API, returns bytes and nanoseconds, try to fix
  the scales, but time on unpriviledged interfaces doesn't work.
Daniel
This commit is contained in:
Daniel Veillard
2005-12-06 13:47:40 +00:00
parent 04130eb824
commit 6564f33fbb
4 changed files with 44 additions and 11 deletions

View File

@@ -71,14 +71,14 @@ typedef struct _virDomainInfo virDomainInfo;
struct _virDomainInfo {
unsigned char state; /* the running state, a virDomainFlags */
unsigned long maxMem; /* the maximum number of bytes allowed */
unsigned long memory; /* the number of bytes used by the domain */
/*
* Informations below are only available to clients with a connection
* with full access to the hypervisor
*/
unsigned long long cpuTime; /* the CPU time used */
unsigned long pages; /* the number of pages used by the domain */
unsigned long maxPages; /* the maximum number of pages allowed */
unsigned long long cpuTime; /* the CPU time used in nanoseconds */
/*
* TODO: