[MPlayer-dev-eng] [PATCH] limit weird numbers in resource display
    Arpi 
    arpi at thot.banki.hu
       
    Sat Nov 15 23:34:00 CET 2003
    
    
  
Hi,
> This patch limits the resource use percentages in the status output so
> they never go above 100%.
> 
> On my PC, the resource use percentages in MPlayer's status output are
> often way above 100%, they can jump up and down pretty unpredictably to
> numbers like 24398.1% or something. I don't know the cause of this, but
> I'm guessing that it's because gettimeofday() sometimes goes backwards
> on my hardware (IBM ThinkPad A21e).
> 
> This problem makes the status line grow wider than 80 characters,
> causing my terminal emulator to spend massive resources scrolling, as
> well as simply being ugly.
refused, bad fix!
the resource % numbers can be >100% for normal users, when the system is too
slow to do the job. limiting it to 100% is bad.
btw, the meaning of those numbers isn't 'resource use' but 'resource needs'!
if you have problem with gettime implementatio, go and add workaround in
osdep/timer-lx.c or report as bug to the kernel maintainers, it's a bug.
A'rpi / Astral & ESP-team
--
Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
    
    
More information about the MPlayer-dev-eng
mailing list