Coding errors in the code - TechRepublic
General discussion
January 13, 2007 at 05:32 AM
tharangawijethilake

Coding errors in the code

by tharangawijethilake . Updated 19 years, 6 months ago

I was developing a smf bundle for OSGi devices to measure the CPU and memory usage and I found this article and the code provided to be very useful. But there was a little error (I am sure it is a mistake) in the code in the c code provided for windows(Listing C).
Add the diclaration for the variable “externalCPUmon”

static int externalCPUmon;

other than that code works fine.

Tharanga Wijethilake
Assitant researcher,
Media team,
Unversity Of Oulu.

This discussion is locked

All Comments