Skip to content
Snippets Groups Projects
Commit 29dd0498 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Fixed gcc warnings -Thanks Chris C

parent f1e68fea
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ static struct cputool_pidlist_item *pidListItemNew(struct cputool_pidlist_item *
/* Find last unused item, or create new */
static struct cputool_pidlist_item *pidListItemGet(struct cputool_pidlist_item *pidList) {
struct cputool_pidlist_item *p, *last;
struct cputool_pidlist_item *p, *last = NULL;
struct cputool_pidlist_item *new = NULL;
......@@ -473,7 +473,6 @@ int main (int argc, char *argv[]) {
uint32_t cpuLimit = 0;
double cpuLimitMultiplier;
double cpuPerHZ;
double clockPerCPULimit;
/* Load limit */
double loadLimit = 0.00;
/* bucket holding how many ticks we can consume */
......@@ -654,7 +653,6 @@ int main (int argc, char *argv[]) {
/* CPU limit multiplier */
cpuLimitMultiplier = (float) cpuLimit / (float) 100;
cpuPerHZ = cpuLimitMultiplier * HZ;
clockPerCPULimit = cpuPerHZ * (double) CLOCK_PRECISION;
/* Set max tickBucket size & initialize tickBucket to that */
tickBucket = tickBucketMax = cpuPerHZ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment