Fix bad cast from u16_t to ssize_t

This commit is contained in:
Emmanuel Blot 2014-11-07 18:24:13 +01:00 committed by David van Moolenbroek
parent 7ee000e54a
commit f92baba71c

View file

@ -50,7 +50,7 @@ int procfs_getloadavg(struct load *loadavg, int nelem)
slot = (latest - h + _LOAD_HISTORY) % _LOAD_HISTORY;
loadavg[p].proc_load +=
loadinfo.proc_load_history[slot];
l += (double) loadinfo.proc_load_history[slot];
l += (ssize_t) loadinfo.proc_load_history[slot];
}
/* The load average over this number of minutes is the number