[Kst] [Bug 112762] kst consumes mucho CPU when idle
George Staikos
staikos at kde.org
Tue Oct 11 07:07:21 CEST 2005
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=112762
staikos kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From staikos kde org 2005-10-11 07:07 -------
SVN commit 469422 by staikos:
Return properly when the second read returns 0. Please comment in the bug
report if this doesn't do what you expect.
BUG: 112762
M +2 -2 getdata.c
--- trunk/extragear/graphics/kst/kst/datasources/dirfile/getdata.c #469421:469422
@ -1199,7 +1199,7 @
return_type, tmpbuf,
error_code);
- if (n_read2 * spf1 != *n_read * spf2) {
+ if (n_read2 > 0 && n_read2 * spf1 != *n_read * spf2) {
*n_read = n_read2 * spf1 / spf2;
}
@ -1265,7 +1265,7 @
0, *n_read * spf2 / spf1,
return_type, tmpbuf,
error_code);
- if (n_read2 * spf1 < *n_read * spf2) {
+ if (n_read2 > 0 && n_read2 * spf1 < *n_read * spf2) {
*n_read = n_read2 * spf1 / spf2;
}
recurse_level--;
More information about the Kst
mailing list