mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Fix sorting of most active pids
This commit is contained in:
parent
29171129a4
commit
9ee8c7f4e7
@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: statistics.c,v 1.4 2007/10/06 22:15:02 rahrenbe Exp $
|
||||
* $Id: statistics.c,v 1.5 2007/10/07 08:46:34 ajhseppa Exp $
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
@ -67,9 +67,9 @@ int SortFunc(const void* data1, const void* data2)
|
||||
pidStruct *comp1 = (pidStruct*)data1;
|
||||
pidStruct *comp2 = (pidStruct*)data2;
|
||||
if (comp1->DataAmount > comp2->DataAmount)
|
||||
return 1;
|
||||
if (comp1->DataAmount < comp2->DataAmount)
|
||||
return -1;
|
||||
if (comp1->DataAmount < comp2->DataAmount)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user