Compare commits
5 Commits
LIBGTOP_2_
...
LIBGTOP_2_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b43a1e01c0 | ||
|
|
88d606d814 | ||
|
|
dd0d06898a | ||
|
|
3e77f3cf13 | ||
|
|
22a1120348 |
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
||||
2005-08-22 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* configure.in:
|
||||
|
||||
Hum hum, it's better if release number is 2.11.92 too.
|
||||
|
||||
2005-08-22 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* NEWS:
|
||||
|
||||
Released 2.11.92.
|
||||
|
||||
2005-08-08 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* NEWS:
|
||||
|
||||
6
NEWS
6
NEWS
@@ -1,3 +1,9 @@
|
||||
August 22, 2005: Overview of changes from 2.11.91 to 2.11.92
|
||||
============================================================
|
||||
* Linux:
|
||||
- fixed for 2.6 without /sys
|
||||
- glibtop_get_cpu() : Do not add irq, softirq and iowait to idle.
|
||||
|
||||
August 9, 2005: Overview of changes from 2.11.90 to 2.11.91
|
||||
===========================================================
|
||||
* All:
|
||||
|
||||
@@ -8,7 +8,7 @@ AC_CANONICAL_SYSTEM
|
||||
|
||||
LIBGTOP_MAJOR_VERSION=2
|
||||
LIBGTOP_MINOR_VERSION=11
|
||||
LIBGTOP_MICRO_VERSION=91
|
||||
LIBGTOP_MICRO_VERSION=92
|
||||
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
|
||||
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2005-08-22 Mugurel Tudor <mugurelu@gnome.ro>
|
||||
|
||||
* ro.po: Updated Romanian translation
|
||||
by Mişu Moldovan <dumol@gnome.ro>
|
||||
|
||||
2005-08-02 Dave Neary <bolsh@gimp.org>
|
||||
|
||||
* tr.po: Fix a C formatting string translation.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-08-15 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* cpu.c: (glibtop_get_cpu_s):
|
||||
|
||||
Do not add irq, softirq and iowait to idle.
|
||||
|
||||
2005-08-04 Benoît Dejean <TazForEver@dlfp.org>
|
||||
|
||||
* open.c: (set_linux_version), (glibtop_open_s):
|
||||
|
||||
@@ -91,6 +91,7 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
||||
buf->nice = strtoull (p, &p, 0);
|
||||
buf->sys = strtoull (p, &p, 0);
|
||||
buf->idle = strtoull (p, &p, 0);
|
||||
buf->total = buf->user + buf->nice + buf->sys + buf->idle;
|
||||
|
||||
/* 2.6 kernel */
|
||||
if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
|
||||
@@ -99,12 +100,9 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
||||
buf->irq = strtoull(p, &p, 0);
|
||||
buf->softirq = strtoull(p, &p, 0);
|
||||
|
||||
buf->idle += buf->iowait;
|
||||
buf->sys += buf->irq + buf->softirq;
|
||||
buf->total += buf->iowait + buf->irq + buf->softirq;
|
||||
}
|
||||
|
||||
buf->total = buf->user + buf->nice + buf->sys + buf->idle;
|
||||
|
||||
buf->frequency = 100;
|
||||
buf->flags = _glibtop_sysdeps_cpu;
|
||||
|
||||
@@ -125,6 +123,10 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
||||
buf->xcpu_nice [i] = strtoull (p, &p, 0);
|
||||
buf->xcpu_sys [i] = strtoull (p, &p, 0);
|
||||
buf->xcpu_idle [i] = strtoull (p, &p, 0);
|
||||
buf->xcpu_total[i] = buf->xcpu_user [i] \
|
||||
+ buf->xcpu_nice [i] \
|
||||
+ buf->xcpu_sys [i] \
|
||||
+ buf->xcpu_idle [i];
|
||||
|
||||
/* 2.6 kernel */
|
||||
if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
|
||||
@@ -133,14 +135,10 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
||||
buf->xcpu_irq [i] = strtoull(p, &p, 0);
|
||||
buf->xcpu_softirq [i] = strtoull(p, &p, 0);
|
||||
|
||||
buf->xcpu_idle [i] += buf->xcpu_iowait [i];
|
||||
buf->xcpu_sys [i] += buf->xcpu_irq [i] + buf->xcpu_softirq [i];
|
||||
buf->xcpu_total [i] += buf->xcpu_iowait [i] \
|
||||
+ buf->xcpu_irq [i] \
|
||||
+ buf->xcpu_softirq [i];
|
||||
}
|
||||
|
||||
buf->xcpu_total[i] = buf->xcpu_user [i] \
|
||||
+ buf->xcpu_nice [i] \
|
||||
+ buf->xcpu_sys [i] \
|
||||
+ buf->xcpu_idle [i];
|
||||
}
|
||||
|
||||
if(i >= 2) /* ok, that's a real SMP */
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2005-08-12 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* glibtop_server.h:
|
||||
* open.c:
|
||||
* open_suid.c:
|
||||
* procdata.c:
|
||||
|
||||
Added missing includes.
|
||||
Added missing GLIBTOP_SUID_NETLIST.
|
||||
|
||||
2004-10-11 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
|
||||
|
||||
@@ -45,6 +45,7 @@ G_BEGIN_DECLS
|
||||
#define GLIBTOP_SUID_PROC_ARGS 0
|
||||
#define GLIBTOP_SUID_PROC_MAP 0
|
||||
#define GLIBTOP_SUID_NETLOAD 0
|
||||
#define GLIBTOP_SUID_NETLIST 0
|
||||
#define GLIBTOP_SUID_PPP 0
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <glibtop/open.h>
|
||||
#include <glibtop/cpu.h>
|
||||
#include <glibtop/error.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/open.h>
|
||||
#include <glibtop/init_hooks.h>
|
||||
#include <glibtop/error.h>
|
||||
#include <glibtop_suid.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <glibtop.h>
|
||||
#include <glibtop_private.h>
|
||||
#include <glibtop/procuid.h>
|
||||
#include <glibtop/error.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user