Benoît Dejean
f4089fa71f
Fixed potential memory leak.
...
Patch by Vincent Untz <vuntz@gnome.org >.
Closes #566611 .
svn path=/branches/gnome-2-24/; revision=2788
2009-01-11 22:59:11 +00:00
Benoît Dejean
7f779e078d
Fixed I/O stats so it works for unpartionned devices (e.g. cdrom).
...
svn path=/trunk/; revision=2757
2008-06-22 11:27:30 +00:00
Benoît Dejean
791e0dd859
Handle new /sys/block/.../stat format for linux >= 2.6.25.
...
Closes #539360 .
svn path=/trunk/; revision=2755
2008-06-22 09:31:41 +00:00
Benoît Dejean
8674e92349
Implemented a linux-only fsusage sysdeps.
...
svn path=/trunk/; revision=2683
2007-10-17 20:53:53 +00:00
Benoît Dejean
871f300a2c
Added a bufsiz argument to file_to_buffer().
...
Increased read buffer size in get_sysinfo().
svn path=/trunk/; revision=2637
2007-08-26 16:05:36 +00:00
Benoît Dejean
65fe248d66
Got rid of G_GNUC_INTERNAL.
...
svn path=/trunk/; revision=2600
2007-05-31 20:04:32 +00:00
Benoît Dejean
2f6439a239
Fixed stat parsing for md devices. Patch by Martin Bailey
...
2007-03-13 Benoît Dejean <benoit@placenet.org >
* fsusage.c: (get_sys_path), (linux_2_6_0):
Fixed stat parsing for md devices.
Patch by Martin Bailey <martin@pcalpha.com >.
svn path=/trunk/; revision=2566
2007-03-13 21:41:43 +00:00
James Henstridge
aa5ac8fc10
remove unused file.
...
2005-12-12 James Henstridge <james@jamesh.id.au >
* doc/auto-macros.texi.in: remove unused file.
* doc/libgtop2.texi: don't include auto-macros.texi.
* doc/Makefile.am: don't build auto-macros.texi, since none of its
macros are used in the documentation any more.
* include/glibtop/global.h: don't include <config.h> from headers.
* .../*.c: make sure <config.h> is the first thing included.
* acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than
inlining it.
* acinclude.m4, libgtop-sysdeps.m4: use third argument to
AC_DEFINE() to set the comment.
* configure.in: modernise a bit.
* acconfig.h: remove file, since it is deprecated
* autogen.sh: require automake 1.9 instead of 1.4.
2005-12-12 09:38:15 +00:00
Benoît Dejean
59fd67c7e0
Removed a g_return_if_fail.
...
* fsusage.c: (get_partition): Removed a g_return_if_fail.
2005-03-29 13:16:58 +00:00
Benoît Dejean
a5982555b9
Fixed G_GNUC attribute usage.
...
* fsusage.c: Fixed G_GNUC attribute usage.
2005-02-15 09:51:12 +00:00
Benoît Dejean
fcb83e637d
Reworked. Should works with IDE, SCSI. DM support is ready, but i don't
...
* fsusage.c: (get_partition), (get_sys_path), (linux_2_6_0): Reworked.
Should works with IDE, SCSI. DM support is ready, but i don't know why
their /stat is empty ...
2005-01-13 08:56:54 +00:00
Benoît Dejean
817057bc3c
Marked private functions G_GNUC_INTERNAL.
...
* fsusage.c: (_glibtop_linux_get_fsusage_read_write):
* glibtop_private.h: Marked private functions G_GNUC_INTERNAL.
2004-12-23 15:56:51 +00:00
Benoît Dejean
2fa0dc1cd8
Added Added Removed
...
* Makefile.am:
* cpu.c:
* fsusage.c:
* glibtop_private.c: (get_scaled), (try_file_to_buffer),
(file_to_buffer): Added
* glibtop_private.h: Added
* glibtop_server.c: Removed
* glibtop_server.h:
* loadavg.c:
* mem.c:
* netload.c:
* open.c:
* prockernel.c:
* procmem.c:
* procsegment.c:
* procsignal.c:
* procstate.c:
* proctime.c:
* procuid.c:
* swap.c:
* sysinfo.c:
* uptime.c: Moved linux impl utils function from glibtop_server.* to
glibtob_private.* because glibtop_server.h is a public header.
2004-11-28 01:32:55 +00:00
Benoît Dejean
0b0b1ab43c
Back to previous version.
...
* fsusage.c: (_glibtop_get_fsusage_read_write),
(glibtop_get_fsusage_s):
* mountlist.c: (glibtop_get_mountlist_s): Back to previous version.
* fsusage.c: (linux_2_6_0), (linux_2_4_0),
(_glibtop_linux_get_fsusage_read_write): Back to previous version.
Now set .flags correctly.
2004-09-20 23:43:24 +00:00
Benoît Dejean
b3fd15c190
Updated to match new prototype.
...
* fsusage.c: (linux_2_6_0), (linux_2_4_0),
(_glibtop_linux_get_fsusage_read_write): Updated to match new prototype.
2004-09-19 21:03:21 +00:00
Benoît Dejean
bce095739f
Added -gnu89 to CFLAGS.
...
* configure.in: Added -gnu89 to CFLAGS.
* examples/Makefile.am: Fixed LDFLAGS.
* sysdeps/common/fsusage.c: (glibtop_get_fsusage_s):
* sysdeps/linux/fsusage.c: (linux_2_6_0):
* sysdeps/linux/proctime.c: (glibtop_get_proc_time_s):
* sysdeps/linux/sysinfo.c: (init_sysinfo): Fixed C89 issues.
Closes #149375 .
2004-08-09 07:55:50 +00:00
Benoît Dejean
bfc14a1925
Added to repository. WIP.
...
* Makefile.am:
* fsusage.c: (linux_2_6_0), (linux_2_4_0),
(_glibtop_linux_get_fsusage_read_write): Added to repository. WIP.
* glibtop_server.h: LINUX_VERSION -> LINUX_VERSION_CODE
* netload.c: (glibtop_get_netload_s): Cleanups. Added support for
hardware address. s/LINUX_VERSION/LINUX_VERSION_CODE/
* open.c: (get_linux_version): s/LINUX_VERSION/LINUX_VERSION_CODE/
* procmap.c: (glibtop_get_proc_map_s): glibify: used GArray
* procuid.c: (glibtop_get_proc_uid_s): s/LINUX_VERSION/LINUX_VERSION_CODE/.
Used Linux MKDEV.
2004-07-17 12:01:24 +00:00