| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Note that this bug could have been avoided by using a struct instead
of a tuple here.
This updates commit daf79631f3eff904ba89297148c4125ac7dfee39.
|
| |
|
|
|
|
|
|
|
|
|
| |
Assume the user enters a local time, and convert it to UTC.
This also adds some clarifying comments to the relative time
code (but doesn't change that code).
Note that the obsolete Calendar1 code is *not* updated by this change.
|
|
|
|
|
|
|
| |
Because of changes in libvirt, this no longer connects to Xen by
default. Instead the default is to connect to the libvirt default
hypervisor (which could be Xen, KVM or others). Update the --help
documentation and manual page accordingly.
|
| |
|
|
|
|
|
|
|
| |
In csv mode, memory usage in kbytes and %mem against total system
memory is shown.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
|
|
|
|
|
|
|
| |
This helps to share the calculation (between modes) and
will help to show memory statistics in --csv mode
Signged-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
|
| |
|
|
|
|
|
| |
This option and the 'B' key toggles block I/O stats between
requests and bytes.
|
|
|
|
| |
Output is sent to stdout (similar to the top -b option).
|
|
|
|
|
|
|
|
| |
Adjust the final delay down so that the --end-time option is obeyed
down to near millisecond accuracy.
The 'usleep' function has been renamed more accurately as 'millisleep'
since it sleeps for milliseconds not microseconds.
|
| |
|
|
|
|
| |
This seems to have been dropped during the hg->git transition.
|
|
|
|
|
| |
For more information see:
https://bugzilla.redhat.com/show_bug.cgi?id=647987#c9
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This turns on stack trace recording unconditionally (the same
effect as if OCAMLRUNPARAM=b was always supplied), and also prints
stack traces to the log file if there is an exception.
See also:
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html
Note that this requires OCaml >= 3.11.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The pad function is supposed to pad a string to a width. Under some
circumstances, the width parameter could be negative resulting in a
call to String.sub such as:
String.sub str 0 (-1)
which caused an exception to be thrown and not caught, causing
virt-top to exit. Fix the pad function to return an empty string if
width <= 0 instead of throwing an exception.
See also:
https://bugzilla.redhat.com/show_bug.cgi?id=634435
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Return the end time as seconds since 1970, and don't adjust it
for timezone. In the main module the end time is compared against
the result of Unix.gettimeofday, which is also seconds since 1970,
so the comparison now works.
Tested with TZ=UTC-05, TZ=UTC and TZ=UTC+05.
NB: This has not been tested against ocaml-calendar 1.x, although
that version of calendar is obsolete and no one should be using it.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
These Xen tools are obsolete since virsh/virt-top works across
all hypervisors.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In this commit:
http://cvs.savannah.gnu.org/viewvc/ocaml-tmk/functions.c?root=ocaml-tmk&r1=1.2&r2=1.3
Sam changed (fixed) the order that the coordinates are returned
from the ncurses 'getyx' call. Since this commit was made 3 years
ago it should be safe to assume everyone is using the new ocaml-ncurses
by now.
This meant the historical %CPU was being displayed off the bottom of
the screen instead of on the top row at the right. Now it is displayed
in the correct place.
|
| |
|
| |
|
|
|
|
|
| |
Add safer curses functions which don't require use of dangerous
ignore() function.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
- See http://hg.et.redhat.com/applications/virt/ for bindings and
the other applications.
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* aclocal.m4: Add AC_CHECK_OCAML_MODULE to check for OCaml
modules directly (without ocamlfind being needed).
* configure.ac: Remove requirement for ocamlfind.
* config.guess, config.sub: Ship these files to guess host,
build and target.
* libvirt/Makefile.in, examples/Makefile.in: Change these
so they don't require ocamlfind, do the right thing on MinGW.
* Make.rules.in: Make.rules is now generated from this file.
File can use ocamlfind or direct ocaml commands as available.
* .hgignore: Ignore some generated files on Windows.
|
|
|
|
|
|
|
|
| |
* libvirt/libvirt.ml, libvirt/libvirt.mli, libvirt/libvirt_c.c:
Change the ad-hoc "foo not supported" exception into a
specific Libvirt.Not_supported "foo" exception.
* virt-top/virt_top.ml: Change virt-top to understand new
exception type.
|
| |
|