[MPlayer-dev-eng] [PATCH] limit weird numbers in resource display

Jonas Jensen jbj at knef.dk
Sat Nov 15 20:55:28 CET 2003


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.

-- 
Jonas Jensen <jbj at knef.dk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-percentfix.patch
Type: text/x-patch
Size: 2776 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031115/6c64fff8/attachment.bin>


More information about the MPlayer-dev-eng mailing list