diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2007-10-17 16:34:23 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2007-10-17 16:34:23 +0100 |
commit | 9bb5f67c0d8a6e8dad7de72e2488ee73c90f7d43 (patch) | |
tree | 6018351784418e4ae965f353c4e96719c4009a5e /virt-top | |
parent | 0e09861c06a0c274bcfdacceaee347f8aaa969cb (diff) | |
download | virt-top-9bb5f67c0d8a6e8dad7de72e2488ee73c90f7d43.tar.gz virt-top-9bb5f67c0d8a6e8dad7de72e2488ee73c90f7d43.tar.xz virt-top-9bb5f67c0d8a6e8dad7de72e2488ee73c90f7d43.zip |
Added GNU GPL/LGPL copyright notices everywhere.
Fixed display of time which was accidentally broken in previous code move.
Diffstat (limited to 'virt-top')
-rw-r--r-- | virt-top/Makefile.in | 17 | ||||
-rw-r--r-- | virt-top/virt-top.1 | 18 | ||||
-rw-r--r-- | virt-top/virt-top.pod | 19 | ||||
-rw-r--r-- | virt-top/virt-top.txt | 17 | ||||
-rw-r--r-- | virt-top/virt_top.ml | 22 | ||||
-rw-r--r-- | virt-top/virt_top_csv.ml | 22 | ||||
-rw-r--r-- | virt-top/virt_top_main.ml | 22 | ||||
-rw-r--r-- | virt-top/virt_top_utils.ml | 18 | ||||
-rw-r--r-- | virt-top/virt_top_xml.ml | 22 |
9 files changed, 165 insertions, 12 deletions
diff --git a/virt-top/Makefile.in b/virt-top/Makefile.in index 354ab17..8eec720 100644 --- a/virt-top/Makefile.in +++ b/virt-top/Makefile.in @@ -1,3 +1,20 @@ +# virt-top +# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + PACKAGE := @PACKAGE_NAME@ VERSION := @PACKAGE_VERSION@ diff --git a/virt-top/virt-top.1 b/virt-top/virt-top.1 index 91bd7e2..137b61f 100644 --- a/virt-top/virt-top.1 +++ b/virt-top/virt-top.1 @@ -381,6 +381,24 @@ This is a bug and this behaviour may change in the future. .SH "AUTHORS" .IX Header "AUTHORS" Richard W.M. Jones <rjones @ redhat . com> +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +(C) Copyright 2007 Red Hat Inc., Richard W.M. Jones +http://libvirt.org/ +.PP +This program is free software; you can redistribute it and/or modify +it under the terms of the \s-1GNU\s0 General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. +.PP +This program is distributed in the hope that it will be useful, +but \s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of +\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0. See the +\&\s-1GNU\s0 General Public License for more details. +.PP +You should have received a copy of the \s-1GNU\s0 General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, \s-1MA\s0 02139, \s-1USA\s0. .SH "REPORTING BUGS" .IX Header "REPORTING BUGS" Bugs can be viewed on the Red Hat Bugzilla page: diff --git a/virt-top/virt-top.pod b/virt-top/virt-top.pod index 9ff956b..af31c27 100644 --- a/virt-top/virt-top.pod +++ b/virt-top/virt-top.pod @@ -316,6 +316,25 @@ L<http://caml.inria.fr/> Richard W.M. Jones <rjones @ redhat . com> +=head1 COPYRIGHT + +(C) Copyright 2007 Red Hat Inc., Richard W.M. Jones +http://libvirt.org/ + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + =head1 REPORTING BUGS Bugs can be viewed on the Red Hat Bugzilla page: diff --git a/virt-top/virt-top.txt b/virt-top/virt-top.txt index 85b003f..f3f7ac5 100644 --- a/virt-top/virt-top.txt +++ b/virt-top/virt-top.txt @@ -219,6 +219,23 @@ SEE ALSO AUTHORS Richard W.M. Jones <rjones @ redhat . com> +COPYRIGHT + (C) Copyright 2007 Red Hat Inc., Richard W.M. Jones http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 675 Mass Ave, Cambridge, MA 02139, USA. + REPORTING BUGS Bugs can be viewed on the Red Hat Bugzilla page: <https://bugzilla.redhat.com/>. diff --git a/virt-top/virt_top.ml b/virt-top/virt_top.ml index 0638a65..dc71a71 100644 --- a/virt-top/virt_top.ml +++ b/virt-top/virt_top.ml @@ -1,5 +1,21 @@ (* 'top'-like tool for libvirt domains. - *) + (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*) open Printf open ExtList @@ -489,7 +505,6 @@ let collect, clear_pcpu_display_data = let tm = Unix.localtime time in let printable_time = sprintf "%02d:%02d:%02d" tm.Unix.tm_hour tm.Unix.tm_min tm.Unix.tm_sec in - mvaddstr top_lineno 0 ("virt-top " ^ printable_time ^ " - "); (* What's the total CPU time elapsed since we were last called? (ns) *) let total_cpu_per_pcpu = 1_000_000_000. *. (time -. !last_time) in @@ -802,6 +817,9 @@ let redraw = (* Get the screen/window size. *) let lines, cols = get_size () in + (* Time. *) + mvaddstr top_lineno 0 ("virt-top " ^ printable_time ^ " - "); + (* Basic node_info. *) addstr (sprintf "%s %d/%dCPU %dMHz %LdMB " node_info.C.model node_info.C.cpus nr_pcpus node_info.C.mhz diff --git a/virt-top/virt_top_csv.ml b/virt-top/virt_top_csv.ml index ee6eb22..8f8c45d 100644 --- a/virt-top/virt_top_csv.ml +++ b/virt-top/virt_top_csv.ml @@ -1,7 +1,23 @@ (* 'top'-like tool for libvirt domains. - * - * This file contains all code which requires CSV support. - *) + (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + This file contains all code which requires CSV support. +*) (* Output channel, or None if CSV output not enabled. *) let chan = ref None ;; diff --git a/virt-top/virt_top_main.ml b/virt-top/virt_top_main.ml index a36bf06..edf87de 100644 --- a/virt-top/virt_top_main.ml +++ b/virt-top/virt_top_main.ml @@ -1,7 +1,23 @@ (* 'top'-like tool for libvirt domains. - * - * Just contains the main function. - *) + (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + Just contains the main function. +*) open Curses diff --git a/virt-top/virt_top_utils.ml b/virt-top/virt_top_utils.ml index 207ba4f..e92d150 100644 --- a/virt-top/virt_top_utils.ml +++ b/virt-top/virt_top_utils.ml @@ -1,5 +1,21 @@ (* 'top'-like tool for libvirt domains. - *) + (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*) let (//) = Filename.concat diff --git a/virt-top/virt_top_xml.ml b/virt-top/virt_top_xml.ml index 9ab4c7f..8bf3d8a 100644 --- a/virt-top/virt_top_xml.ml +++ b/virt-top/virt_top_xml.ml @@ -1,7 +1,23 @@ (* 'top'-like tool for libvirt domains. - * - * This file contains all code which requires xml-light. - *) + (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + This file contains all code which requires xml-light. +*) open ExtList |