Use the proper types, add casts where necessary (bug 14401)

This commit is contained in:
rim
2018-05-30 21:46:29 +02:00
committed by Landry Breuil
parent 512e88ad6c
commit 1c09b7329b
7 changed files with 33 additions and 32 deletions

View File

@@ -138,7 +138,7 @@ gboolean get_task_list (GArray *task_list)
free(args);
}
t.cpu_user = (100.0 * ((double) p.p_pctcpu / FSCALE));
t.cpu_user = (100.0f * ((gfloat)p.p_pctcpu / FSCALE));
t.cpu_system = 0.0f; /* TODO ? */
g_array_append_val(task_list, t);
}