Skip to content

Commit 3717100

Browse files
committed
Use float constants in the Time Window formula
1 parent 4307815 commit 3717100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corefreqd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ void HyperThreading(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc))
13841384

13851385
double TW_Manufacturer(unsigned short Y, unsigned short Z, double TU)
13861386
{
1387-
return (1 << Y) * (1 + Z/4) * TU;
1387+
return (1 << Y) * (1.0 + Z / 4.0) * TU;
13881388
}
13891389

13901390
void PowerInterface(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc))

0 commit comments

Comments
 (0)