Rename Results => NetworkState.
This commit is contained in:
parent
9e9cddedc5
commit
8e08df2fd2
9 changed files with 34 additions and 33 deletions
|
@ -25,7 +25,7 @@
|
|||
#define __APISTATE_H__
|
||||
|
||||
|
||||
#include "api/Results.h"
|
||||
#include "api/NetworkState.h"
|
||||
#include "jansson.h"
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
|
||||
const char *get(const char *url, size_t *size) const;
|
||||
void tick(const Hashrate *hashrate);
|
||||
void tick(const Results &results);
|
||||
void tick(const NetworkState &results);
|
||||
|
||||
private:
|
||||
const char *finalize(json_t *reply, size_t *size) const;
|
||||
|
@ -58,7 +58,7 @@ private:
|
|||
double m_totalHashrate[3];
|
||||
int m_threads;
|
||||
mutable char m_buf[4096];
|
||||
Results m_results;
|
||||
NetworkState m_network;
|
||||
};
|
||||
|
||||
#endif /* __APISTATE_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue