mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
imageinfo_ni: simplify max_bit handling
Conflicts:
src/gui/imageinfo_ni.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: a333845440
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Origin message was:
------------------
- imageinfo_ni: simplify max_bit handling
Conflicts:
src/gui/imageinfo_ni.cpp
------------------
This commit was generated by Migit
This commit is contained in:
@@ -849,12 +849,10 @@ void CImageInfoNI::paint_NET_Info(int posx, int posy)
|
|||||||
* 13107200 Byte
|
* 13107200 Byte
|
||||||
* 104857600 Bit
|
* 104857600 Bit
|
||||||
*/
|
*/
|
||||||
#ifdef BOXMODEL_CS_HD2
|
|
||||||
int max_bit = 104857600; /* Shiner, Kronos */
|
|
||||||
if (revision == 9)
|
|
||||||
max_bit = 1073741824; /* Apollo */
|
|
||||||
#else
|
|
||||||
int max_bit = 104857600;
|
int max_bit = 104857600;
|
||||||
|
#ifdef BOXMODEL_CS_HD2
|
||||||
|
if (revision == 9) /* Apollo */
|
||||||
|
max_bit = 1073741824;
|
||||||
#endif
|
#endif
|
||||||
int percent = ((rbit_s+wbit_s)*100/max_bit);
|
int percent = ((rbit_s+wbit_s)*100/max_bit);
|
||||||
|
|
||||||
|
@@ -102,6 +102,7 @@ class CImageInfoNI : public CMenuTarget
|
|||||||
uint64_t read_old;
|
uint64_t read_old;
|
||||||
uint64_t write_old;
|
uint64_t write_old;
|
||||||
uint64_t net_best;
|
uint64_t net_best;
|
||||||
|
std::string netIfName;
|
||||||
|
|
||||||
pthread_t InfoThread;
|
pthread_t InfoThread;
|
||||||
static void* InfoProc(void *arg);
|
static void* InfoProc(void *arg);
|
||||||
|
Reference in New Issue
Block a user