patch-2.1.115 linux/drivers/scsi/ibmmca.c
Next file: linux/drivers/scsi/jazz_esp.c
Previous file: linux/drivers/scsi/hosts.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Tue Aug 4 10:31:58 1998
- Orig file:
v2.1.114/linux/drivers/scsi/ibmmca.c
- Orig date:
Sun Jul 26 11:57:16 1998
diff -u --recursive --new-file v2.1.114/linux/drivers/scsi/ibmmca.c linux/drivers/scsi/ibmmca.c
@@ -2137,8 +2137,7 @@
{
if (IBM_DS.total_accesses == 0) return (0);
if (IBM_DS.ldn_access[ldn] == 0) return (0);
-#error Floating point in kernel - shoot programmer
- return((int)(((float)IBM_DS.ldn_access[ldn]/(float)IBM_DS.total_accesses)*(float)100.000));
+ return (IBM_DS.ldn_access[ldn] * 100) / IBM_DS.total_accesses;
}
/* calculate total amount of r/w-accesses */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov