summaryrefslogtreecommitdiffstats
path: root/virt-top/virt_top_utils.ml
Commit message (Collapse)AuthorAgeFilesLines
* Fix pad function to work for negative widths (RHBZ#634435).Richard W.M. Jones2011-01-061-4/+7
| | | | | | | | | | | | | | | 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
* HACKING file, update (C) messages.Richard Jones2009-10-061-1/+1
|
* Replace failwith (sprintf...) with failwithfRichard Jones2009-10-061-0/+3
|
* Internationalize virt-top.Richard W.M. Jones2008-03-281-0/+2
|
* Build libvirt and examples on Windows (MinGW).Richard W.M. Jones2008-01-051-0/+0
| | | | | | | | | | | | | * 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.
* Reorganised the code to put more utility functions into virt_top_utils.Richard W.M. Jones2007-10-191-0/+130
| | | | | Added explicit interfaces for Virt_top_utils & Virt_top modules. Corrected use of endwin when _not_ in script mode.
* Added GNU GPL/LGPL copyright notices everywhere.Richard W.M. Jones2007-10-171-1/+17
| | | | Fixed display of time which was accidentally broken in previous code move.
* Removed $Id$ everywhere.Richard W.M. Jones2007-10-171-1/+0
| | | | 'make distclean' now cleans more files.
* Version 0.3.2.8.Richard W.M. Jones2007-09-241-0/+74
Added support for init files.