virt-top.git
2 years agobuild: Remove bogus directory list in ocaml-dep.sh.in
Richard W.M. Jones [Wed, 3 Nov 2021 19:59:22 +0000 (19:59 +0000)]
build: Remove bogus directory list in ocaml-dep.sh.in

This was a cut and paste error when I copied this file over from
libguestfs.

Fixes: commit 5405de2920fa56529b56f61ff683806e72ddfa6a

2 years agoRemove external dependency on ocaml-csv
Richard W.M. Jones [Wed, 3 Nov 2021 11:28:58 +0000 (11:28 +0000)]
Remove external dependency on ocaml-csv

We only used a tiny number of features from this library, and it is
distributed under a compatible license so we might as well inline the
function we need.

2 years agoRemove dependency on ocaml-extlib
Richard W.M. Jones [Wed, 3 Nov 2021 11:47:13 +0000 (11:47 +0000)]
Remove dependency on ocaml-extlib

We only used a handful of small functions from this library, so we can
completely remove the dependency easily.

2 years agobuild: Use non-deprecated form of warning flags
Richard W.M. Jones [Wed, 3 Nov 2021 11:50:10 +0000 (11:50 +0000)]
build: Use non-deprecated form of warning flags

In OCaml 4.13:

Alert ocaml_deprecated_cli: Setting a warning with a sequence of lowercase or uppercase letters,
like 'CDEFLMPSUVYZX', is deprecated.
Use the equivalent signed form: +C+D+E+F+L+M+P+S+U+V+Y+Z+X-3.

3 years agoMerge remote-tracking branch 'weblate/master'
Richard W.M. Jones [Fri, 1 Oct 2021 15:32:36 +0000 (16:32 +0100)]
Merge remote-tracking branch 'weblate/master'

3 years agoVersion 1.1.0. v1.1.0
Richard W.M. Jones [Fri, 1 Oct 2021 15:17:20 +0000 (16:17 +0100)]
Version 1.1.0.

Move to the more usual (for us) even = stable, odd = unstable
semantic-ish versioning system, as used by olden days Linux.

This is the first in a new development series.

3 years agoRemove Changelog file
Richard W.M. Jones [Fri, 1 Oct 2021 15:16:29 +0000 (16:16 +0100)]
Remove Changelog file

Users can easily read the git logs if they want this information.

3 years agoRemove old Zanata files
Richard W.M. Jones [Fri, 1 Oct 2021 15:15:41 +0000 (16:15 +0100)]
Remove old Zanata files

We're meant to be using Weblate now.

3 years agoConvert to using automake
Richard W.M. Jones [Fri, 1 Oct 2021 14:33:29 +0000 (15:33 +0100)]
Convert to using automake

3 years agoTranslated using Weblate (Czech)
Pavel Borecki [Thu, 30 Sep 2021 23:05:05 +0000 (01:05 +0200)]
Translated using Weblate (Czech)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/cs/

3 years agoTranslated using Weblate (Indonesian)
Didik Supriadi [Thu, 30 Sep 2021 23:05:05 +0000 (01:05 +0200)]
Translated using Weblate (Indonesian)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/id/

3 years agoTranslated using Weblate (Indonesian)
Andika Triwidada [Thu, 30 Sep 2021 23:05:05 +0000 (01:05 +0200)]
Translated using Weblate (Indonesian)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/id/

3 years agoTranslated using Weblate (Finnish)
Jan Kuparinen [Thu, 30 Sep 2021 23:05:04 +0000 (01:05 +0200)]
Translated using Weblate (Finnish)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/fi/

Translated using Weblate (Finnish)

Currently translated at 67.8% (57 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/fi/

Added translation using Weblate (Finnish)

3 years agoTranslated using Weblate (Sinhala)
Hela Basa [Thu, 30 Sep 2021 23:05:04 +0000 (01:05 +0200)]
Translated using Weblate (Sinhala)

Currently translated at 1.1% (1 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/si/

Added translation using Weblate (Sinhala)

3 years agoTranslated using Weblate (Dutch)
Geert Warrink [Thu, 30 Sep 2021 23:05:04 +0000 (01:05 +0200)]
Translated using Weblate (Dutch)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/nl/

3 years agoTranslated using Weblate (Spanish)
Emilio Herrera [Thu, 30 Sep 2021 23:05:04 +0000 (01:05 +0200)]
Translated using Weblate (Spanish)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/es/

Translated using Weblate (Spanish)

Currently translated at 84.5% (71 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/es/

4 years agoMerge remote-tracking branch 'weblate/master' into master
Richard W.M. Jones [Mon, 21 Sep 2020 07:36:38 +0000 (08:36 +0100)]
Merge remote-tracking branch 'weblate/master' into master

4 years agoTranslated using Weblate (Spanish)
Emilio Herrera [Sat, 12 Sep 2020 10:08:07 +0000 (10:08 +0000)]
Translated using Weblate (Spanish)

Currently translated at 84.5% (71 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/es/

4 years agoTranslated using Weblate (French)
Julien Humbert [Fri, 28 Aug 2020 03:29:18 +0000 (05:29 +0200)]
Translated using Weblate (French)

Currently translated at 20.2% (17 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/fr/

4 years agoTranslated using Weblate (Ukrainian)
Yuri Chornoivan [Fri, 28 Aug 2020 03:29:18 +0000 (05:29 +0200)]
Translated using Weblate (Ukrainian)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/uk/

4 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Fri, 28 Aug 2020 03:29:17 +0000 (05:29 +0200)]
Translated using Weblate (Swedish)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/sv/

4 years agoTranslated using Weblate (Turkish)
Oğuz Ersen [Fri, 28 Aug 2020 03:29:17 +0000 (05:29 +0200)]
Translated using Weblate (Turkish)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/tr/

4 years agoTranslated using Weblate (Polish)
Piotr Drąg [Fri, 28 Aug 2020 03:29:17 +0000 (05:29 +0200)]
Translated using Weblate (Polish)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (84 of 84 strings)

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/pl/

4 years agoUpdate translation files
Weblate [Fri, 28 Aug 2020 03:29:17 +0000 (05:29 +0200)]
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-top/master
Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/

4 years agoUpdate translations from Zanata (RHBZ#1868108).
Richard W.M. Jones [Thu, 27 Aug 2020 07:37:51 +0000 (08:37 +0100)]
Update translations from Zanata (RHBZ#1868108).

5 years agolibvirt: Handle VIR_DOMAIN_PMSUSPENDED state.
Stephane Glondu [Wed, 21 Aug 2019 15:24:47 +0000 (17:24 +0200)]
libvirt: Handle VIR_DOMAIN_PMSUSPENDED state.

Fixes FTBFS with ocaml-libvirt 0.6.1.5.

RWMJ: Added documentation and changed the letter to 'M'.

5 years agoVersion 1.0.9. v1.0.9
Richard W.M. Jones [Tue, 20 Aug 2019 13:31:58 +0000 (14:31 +0100)]
Version 1.0.9.

5 years agosrc/top.ml: Don't depend on exact value of Failure argument.
Richard W.M. Jones [Tue, 20 Aug 2019 13:31:34 +0000 (14:31 +0100)]
src/top.ml: Don't depend on exact value of Failure argument.

File "top.ml", line 423, characters 14-31:
423 |       Failure "float_of_string" ->
                    ^^^^^^^^^^^^^^^^^
Warning 52: Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 9.5)

6 years agobuild: Pass through CFLAGS and LDFLAGS to ocaml compiler (RHBZ#1630636).
Richard W.M. Jones [Thu, 20 Sep 2018 12:47:34 +0000 (13:47 +0100)]
build: Pass through CFLAGS and LDFLAGS to ocaml compiler (RHBZ#1630636).

6 years agoLink with -fPIC runtime.
Richard W.M. Jones [Sat, 18 Nov 2017 12:01:49 +0000 (12:01 +0000)]
Link with -fPIC runtime.

6 years agoFixes for -safe-string in OCaml 4.06.
Richard W.M. Jones [Sat, 18 Nov 2017 12:01:34 +0000 (12:01 +0000)]
Fixes for -safe-string in OCaml 4.06.

7 years agochmod -x COPYING* files.
Richard W.M. Jones [Tue, 28 Mar 2017 13:36:07 +0000 (14:36 +0100)]
chmod -x COPYING* files.

7 years agoUse virConnectGetAllDomainStats API to collect domain stats (RHBZ#1422795).
Richard W.M. Jones [Tue, 28 Mar 2017 12:30:07 +0000 (13:30 +0100)]
Use virConnectGetAllDomainStats API to collect domain stats (RHBZ#1422795).

This is much faster than using the basic libvirt APIs to collect
stats for each domain individually.

Note this will not work unless you have the latest ocaml-libvirt
package which includes this new API binding.

7 years agoRemove unused variable is_calendar2.
Richard W.M. Jones [Tue, 28 Mar 2017 12:09:54 +0000 (13:09 +0100)]
Remove unused variable is_calendar2.

Fixes commit effd1ec5897a2cac6e897ae7bce72f6b1e617b90.

7 years agoMove block_in_bytes entirely to the presentation layer.
Richard W.M. Jones [Mon, 27 Mar 2017 20:22:52 +0000 (21:22 +0100)]
Move block_in_bytes entirely to the presentation layer.

Simplifies and updates commit dbef8dd3bf00417e75a12c851b053e49c9e1a79e.

7 years agoSplit up huge Top module into smaller modules.
Richard W.M. Jones [Mon, 27 Mar 2017 14:29:23 +0000 (15:29 +0100)]
Split up huge Top module into smaller modules.

This change is hopefully pure refactoring, splitting up the very large
and highly interlinked module into more manageable modules with
well-defined (or at least *better*-defined) interfaces between them.

7 years agosrc: Fix some comments which referred to the old filenames.
Richard W.M. Jones [Mon, 27 Mar 2017 12:06:18 +0000 (13:06 +0100)]
src: Fix some comments which referred to the old filenames.

Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.

7 years agoRemove support for OCaml Calendar v1.
Richard W.M. Jones [Mon, 27 Mar 2017 11:41:21 +0000 (12:41 +0100)]
Remove support for OCaml Calendar v1.

Calendar v2 was released in 2008 (9 years ago!), thus remove support
for v1.

This was already broken by commit dc0e217390132f7e76a4d9c0a8a81a9556d19081
so it likely didn't work anyway.

7 years agoUpdate PO files.
Richard W.M. Jones [Mon, 27 Mar 2017 11:34:20 +0000 (12:34 +0100)]
Update PO files.

7 years agoFix po/POTFILES for new location of source files.
Richard W.M. Jones [Mon, 27 Mar 2017 11:33:22 +0000 (12:33 +0100)]
Fix po/POTFILES for new location of source files.

Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.

7 years agoRefresh HACKING file.
Richard W.M. Jones [Mon, 27 Mar 2017 11:30:01 +0000 (12:30 +0100)]
Refresh HACKING file.

Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.

7 years agoRemove +x (executable) permission on several source files.
Richard W.M. Jones [Mon, 27 Mar 2017 11:25:19 +0000 (12:25 +0100)]
Remove +x (executable) permission on several source files.

Not sure why it was there, but it was incorrect.

7 years agoEnable same warnings as libguestfs.
Richard W.M. Jones [Mon, 27 Mar 2017 11:21:48 +0000 (12:21 +0100)]
Enable same warnings as libguestfs.

In particular 'warning 3' was still enabled before, meaning that the
code would fail with newer OCaml compilers:

  File "top.ml", line 377, characters 12-25:
  Warning 3: deprecated: String.create
  Use Bytes.create instead.

Since we want to continue using old OCaml for now, don't enable
this warning.

8 years agoRename source directory and files.
Richard W.M. Jones [Mon, 31 Oct 2016 12:01:40 +0000 (12:01 +0000)]
Rename source directory and files.

This renames the source directory from virt-top to src/ and removes
the unnecessary virt_top_* prefix from many source files.

This is entirely refactoring and makes no functional change.

Also this fixes the MANIFEST file and removes old Transifex
configuration, fixing commit defe5bdd4a32e0206a786d279e0f9cfc238e5e17.

8 years agobuild: Add -g flag to ocamlopt.
Richard W.M. Jones [Mon, 4 Jan 2016 16:48:40 +0000 (11:48 -0500)]
build: Add -g flag to ocamlopt.

Modern ocamlopt supports the -g flag fine (very old versions did not).

9 years agoUpdate translations from Zanata.
Richard W.M. Jones [Sat, 21 Feb 2015 17:29:16 +0000 (17:29 +0000)]
Update translations from Zanata.

9 years agoMove upstream translations from Tranifex to Zanata.
Richard W.M. Jones [Sat, 21 Feb 2015 17:27:59 +0000 (17:27 +0000)]
Move upstream translations from Tranifex to Zanata.

This is at the request of the Fedora localization team.
For further information see:

https://www.redhat.com/archives/libguestfs/2015-February/msg00168.html

10 years agoDisable warning about immutable strings (for OCaml 4.02).
Richard W.M. Jones [Sat, 2 Aug 2014 16:37:21 +0000 (17:37 +0100)]
Disable warning about immutable strings (for OCaml 4.02).

12 years agoVersion 1.0.8. 1.0.8
Richard W.M. Jones [Fri, 12 Oct 2012 12:49:57 +0000 (13:49 +0100)]
Version 1.0.8.

12 years agoshow `vcpu usages' by `virt-top -1'
Hu Tao [Fri, 12 Oct 2012 12:45:26 +0000 (13:45 +0100)]
show `vcpu usages' by `virt-top -1'

Before this patch, `virt-top -1' shows total cpu usages
which euqal to `vcpu usages' + `hypervisor usages'. This
patch adds another column for domains showing `vcpu
usages'. An example is:

PHYCPU %CPU example_domain
   0   10.4 10.4  0.8
   1    1.6  1.6  1.4
   2    2.6  2.6  2.6
   3    0.0  0.0  0.1

RWMJ: I cleaned up this patch a little, but it should be
functionally the same.

12 years agoRename find_usages_from_stats as find_cpu_usages.
Hu Tao [Fri, 12 Oct 2012 12:06:34 +0000 (13:06 +0100)]
Rename find_usages_from_stats as find_cpu_usages.

This is just code motion.

12 years agoOCaml stable dependencies.
Richard W.M. Jones [Fri, 12 Oct 2012 10:38:12 +0000 (11:38 +0100)]
OCaml stable dependencies.

12 years agoRemove D.get_cpu_stats second parameter.
Richard W.M. Jones [Fri, 12 Oct 2012 10:32:06 +0000 (11:32 +0100)]
Remove D.get_cpu_stats second parameter.

In upstream ocaml-libvirt, this second parameter has been removed,
because it was found that nr_pcpus can be found by calling the libvirt
API directly.

12 years agoMake the main code and exception handling simpler.
Richard W.M. Jones [Fri, 28 Sep 2012 15:37:50 +0000 (16:37 +0100)]
Make the main code and exception handling simpler.

12 years agoBetter error messages when parsing the init file (RHBZ#836231).
Richard W.M. Jones [Fri, 28 Sep 2012 15:37:17 +0000 (16:37 +0100)]
Better error messages when parsing the init file (RHBZ#836231).

12 years agoAdd missing sort order options in --help output (RHBZ#807176).
Richard W.M. Jones [Fri, 28 Sep 2012 15:19:49 +0000 (16:19 +0100)]
Add missing sort order options in --help output (RHBZ#807176).

12 years agoMan page: Add an explanation of columns (RHBZ#834208).
Richard W.M. Jones [Fri, 28 Sep 2012 15:14:14 +0000 (16:14 +0100)]
Man page: Add an explanation of columns (RHBZ#834208).

12 years agoman page: Update copyright date.
Richard W.M. Jones [Fri, 28 Sep 2012 14:41:19 +0000 (15:41 +0100)]
man page: Update copyright date.

12 years agoVersion 1.0.7. 1.0.7
Richard W.M. Jones [Tue, 6 Mar 2012 11:55:36 +0000 (11:55 +0000)]
Version 1.0.7.

12 years agoIgnore aclocal.m4.
Richard W.M. Jones [Tue, 6 Mar 2012 11:57:59 +0000 (11:57 +0000)]
Ignore aclocal.m4.

12 years agoDocument requirements in README file.
Richard W.M. Jones [Tue, 6 Mar 2012 11:55:24 +0000 (11:55 +0000)]
Document requirements in README file.

12 years agovirt-top: correct "virt-top -1" command via cpuacct cgroup
Lai Jiangshan [Wed, 8 Feb 2012 08:59:50 +0000 (16:59 +0800)]
virt-top: correct "virt-top -1" command via cpuacct cgroup

Old "virt-top -1" is not correct, its output is generated by guess:
use average usage for pinned physical CPUs.

example(old "virt-top -1"):

PHYCPU %CPU rhel6  Windows
   0    0.6  0.1=   0.5=
   1    0.6  0.1=   0.5=#
   2    0.6  0.1=   0.5=
   3    0.6  0.1=#  0.5=

The output almost makes no sense(all the value are just average, not real).

This is new implement, it use cpuacct cgroup to gain *real* physical usages
via cpuacct cgroup by virDomainGetCPUStats() API.

new result:

PHYCPU %CPU rhel6  Windows
   0    1.3  0.3     1.0
   1    2.3  0.3     2.0
   2    2.2  0.5     1.7
   3    2.5  0.4     2.1

PHYCPU %CPU rhel6  Windows
   0    1.7  0.4     1.3
   1    3.6  1.0     2.7
   2    1.6  0.4     1.2
   3    4.8  3.1     1.7

Note: average flag(=) is dropped, there is not average value in here.
Note: running flag(#) is dropped, because if the value is not empty,
      it means the guest was once running in the physical CPU in this period
      between updates.

Changed from V3:
use new virDomainGetCPUStats() libvirt-API.
add a new function find_usages_from_stats() to gain cpu usages.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
13 years agoEnsure manpages get built when using native compiler (thanks Laurent Léonard).
Richard W.M. Jones [Mon, 15 Aug 2011 11:18:03 +0000 (12:18 +0100)]
Ensure manpages get built when using native compiler (thanks Laurent Léonard).

13 years agoVersion 1.0.6. 1.0.6
Richard W.M. Jones [Fri, 12 Aug 2011 11:10:41 +0000 (12:10 +0100)]
Version 1.0.6.

13 years agoUpdate MANIFEST and fix 'make dist'.
Richard W.M. Jones [Fri, 12 Aug 2011 11:09:43 +0000 (12:09 +0100)]
Update MANIFEST and fix 'make dist'.

make dist now copies the generated manual pages into the tarball, so
that we don't have to keep these generated files in git.

13 years agoFix ordering of csv_mode and stream_mode in tuple.
Richard W.M. Jones [Fri, 12 Aug 2011 10:54:41 +0000 (11:54 +0100)]
Fix ordering of csv_mode and stream_mode in tuple.

Note that this bug could have been avoided by using a struct instead
of a tuple here.

This updates commit daf79631f3eff904ba89297148c4125ac7dfee39.

13 years agodocs: Explain how to debug libvirt initialization problems (RHBZ#680031).
Richard W.M. Jones [Thu, 11 Aug 2011 12:11:02 +0000 (13:11 +0100)]
docs: Explain how to debug libvirt initialization problems (RHBZ#680031).

13 years agoPull translations from Transifex.
Richard W.M. Jones [Sat, 2 Apr 2011 07:48:09 +0000 (08:48 +0100)]
Pull translations from Transifex.

13 years agoFix --end-time option with absolute times.
Richard W.M. Jones [Tue, 8 Mar 2011 11:21:49 +0000 (11:21 +0000)]
Fix --end-time option with absolute times.

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.

13 years agodocs: Fix documentation for virt-top -c option.
Richard W.M. Jones [Tue, 8 Mar 2011 10:41:48 +0000 (10:41 +0000)]
docs: Fix documentation for virt-top -c option.

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.

13 years agoRemove generated man pages from git.
Richard W.M. Jones [Tue, 8 Mar 2011 10:35:05 +0000 (10:35 +0000)]
Remove generated man pages from git.

13 years agoadd memory stats to --csv mode.
KAMEZAWA Hiroyuki [Tue, 15 Feb 2011 20:04:42 +0000 (05:04 +0900)]
add memory stats to --csv mode.

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>
13 years agoRecord memory statistics information to 'rd' object.
KAMEZAWA Hiroyuki [Tue, 15 Feb 2011 20:08:13 +0000 (05:08 +0900)]
Record memory statistics information to 'rd' object.

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>
13 years agoImport virt-top into transifex.
Richard W.M. Jones [Mon, 7 Mar 2011 10:54:08 +0000 (10:54 +0000)]
Import virt-top into transifex.

http://www.transifex.net/projects/p/virttop/

13 years agoUpdate generated man page files.
Richard W.M. Jones [Wed, 2 Feb 2011 14:44:25 +0000 (14:44 +0000)]
Update generated man page files.

13 years agoAdd --block-in-bytes option.
KAMEZAWA Hiroyuki [Wed, 2 Feb 2011 14:38:47 +0000 (14:38 +0000)]
Add --block-in-bytes option.

This option and the 'B' key toggles block I/O stats between
requests and bytes.

13 years agoAdd --stream flag.
KAMEZAWA Hiroyuki [Wed, 2 Feb 2011 14:30:06 +0000 (14:30 +0000)]
Add --stream flag.

Output is sent to stdout (similar to the top -b option).

13 years agoObey virt-top --end-time down to near millisecond accuracy (RHBZ#637964).
Richard W.M. Jones [Mon, 24 Jan 2011 14:33:25 +0000 (14:33 +0000)]
Obey virt-top --end-time down to near millisecond accuracy (RHBZ#637964).

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.

13 years agoVersion 1.0.5. 1.0.5
Richard W.M. Jones [Thu, 6 Jan 2011 14:30:35 +0000 (14:30 +0000)]
Version 1.0.5.

13 years agoAdd aclocal.m4 file to git.
Richard W.M. Jones [Thu, 6 Jan 2011 14:37:45 +0000 (14:37 +0000)]
Add aclocal.m4 file to git.

This file is sort of generated, but at the moment only has
a single line which includes m4/ocaml.m4, that is vital for
the build.

13 years agoRe-add virt-top/README file.
Richard W.M. Jones [Thu, 6 Jan 2011 14:34:42 +0000 (14:34 +0000)]
Re-add virt-top/README file.

This seems to have been dropped during the hg->git transition.

13 years agoDocument background noise of RX packets from bridges (RHBZ#647987).
Richard W.M. Jones [Thu, 6 Jan 2011 13:34:16 +0000 (13:34 +0000)]
Document background noise of RX packets from bridges (RHBZ#647987).

For more information see:
https://bugzilla.redhat.com/show_bug.cgi?id=647987#c9

13 years agoman page: Remove excess blank line.
Richard W.M. Jones [Thu, 6 Jan 2011 13:29:38 +0000 (13:29 +0000)]
man page: Remove excess blank line.

13 years agomain: Record and print full exception stack traces.
Richard W.M. Jones [Thu, 6 Jan 2011 12:40:29 +0000 (12:40 +0000)]
main: Record and print full exception stack traces.

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.

13 years agoFix pad function to work for negative widths (RHBZ#634435).
Richard W.M. Jones [Thu, 6 Jan 2011 12:38:24 +0000 (12:38 +0000)]
Fix pad function to work for negative widths (RHBZ#634435).

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

13 years agoUpdate dependencies.
Richard W.M. Jones [Thu, 6 Jan 2011 11:24:57 +0000 (11:24 +0000)]
Update dependencies.

13 years agoUpdate generated man pages.
Richard W.M. Jones [Thu, 6 Jan 2011 11:24:54 +0000 (11:24 +0000)]
Update generated man pages.

13 years agoFix virt-top --end-time option when TZ<>UTC (RHBZ#637964).
Richard W.M. Jones [Thu, 6 Jan 2011 11:22:44 +0000 (11:22 +0000)]
Fix virt-top --end-time option when TZ<>UTC (RHBZ#637964).

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.

13 years agoUpdate dependencies file.
Richard W.M. Jones [Thu, 6 Jan 2011 10:19:18 +0000 (10:19 +0000)]
Update dependencies file.

13 years agoman page: memory option shows total guest memory (RHBZ#647991).
Richard W.M. Jones [Thu, 6 Jan 2011 10:18:43 +0000 (10:18 +0000)]
man page: memory option shows total guest memory (RHBZ#647991).

13 years agoman page: Update copyright date and link to web pages.
Richard W.M. Jones [Thu, 6 Jan 2011 10:16:12 +0000 (10:16 +0000)]
man page: Update copyright date and link to web pages.

13 years agoRemove references to xm/xentop manual pages (RHBZ#648186).
Richard W.M. Jones [Thu, 6 Jan 2011 10:14:51 +0000 (10:14 +0000)]
Remove references to xm/xentop manual pages (RHBZ#648186).

These Xen tools are obsolete since virsh/virt-top works across
all hypervisors.

14 years agoChange order of return values from getyx - fixes display of historical CPU.
Richard Jones [Thu, 2 Sep 2010 08:00:35 +0000 (09:00 +0100)]
Change order of return values from getyx - fixes display of historical CPU.

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.

14 years agoUpdate Japanese translations (RHBZ#493799).
Kiyoto Hashida [Tue, 15 Jun 2010 10:26:13 +0000 (11:26 +0100)]
Update Japanese translations (RHBZ#493799).

14 years agoUpdated Russian translations (RHBZ#493799).
Yulia [Fri, 5 Mar 2010 10:14:44 +0000 (10:14 +0000)]
Updated Russian translations (RHBZ#493799).

14 years agoNewer autoconf adds PACKAGE_URL definition.
Richard Jones [Fri, 5 Mar 2010 09:40:41 +0000 (09:40 +0000)]
Newer autoconf adds PACKAGE_URL definition.

14 years agozh_CN: Remove bogus Plural-Forms line.
Richard Jones [Fri, 12 Feb 2010 09:55:15 +0000 (09:55 +0000)]
zh_CN: Remove bogus Plural-Forms line.

14 years agoJapanese: update bogus 'Plural-Forms: Plural-Forms'.
Richard Jones [Fri, 12 Feb 2010 09:54:33 +0000 (09:54 +0000)]
Japanese: update bogus 'Plural-Forms: Plural-Forms'.

14 years agoUpdate Japanese translations (RHBZ#493799).
Hajime Taira [Fri, 12 Feb 2010 09:53:09 +0000 (09:53 +0000)]
Update Japanese translations (RHBZ#493799).

14 years agoRename te_IN.po -> te.po (Piotr Drąg).
Richard Jones [Thu, 28 Jan 2010 19:45:00 +0000 (19:45 +0000)]
Rename te_IN.po -> te.po (Piotr Drąg).