mirror of
https://github.com/mpv-player/mpv
synced 2024-10-18 10:25:02 +02:00
more exact cpu mhz detect for fats cpus (remove rounding)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10956 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2940c3fa9b
commit
29b5d5b8f5
@ -257,7 +257,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
|
||||
i += 50; /* for rounding */
|
||||
snprintf(cpuspeed,15, " %d.%d MHz", i/1000, (i/100)%10);
|
||||
} else {
|
||||
i += 500; /* for rounding */
|
||||
//i += 500; /* for rounding */
|
||||
snprintf(cpuspeed,15, " %d MHz", i/1000);
|
||||
}
|
||||
} else { /* No TSC Support */
|
||||
|
Loading…
Reference in New Issue
Block a user