* Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
*
* $FreeBSD: src/contrib/top/utils.c,v 1.3.6.1 2002/08/11 17:09:25 dwmalone Exp $
- * $DragonFly: src/contrib/top/utils.c,v 1.2 2003/06/17 04:24:07 dillon Exp $
+ * $DragonFly: src/contrib/top/utils.c,v 1.3 2003/07/11 23:33:24 dillon Exp $
*/
/*
if(total_change) {
for (i = 0; i < cnt; i++)
{
- *out++ = (int)((*diffs++ * 1000 + half_total) / total_change);
+ *out++ = (int)((*diffs++ * 1000LL + half_total) / total_change);
}
}