Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon: clean legacy code #9643

Merged
2 commits merged into from Nov 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 0 additions & 23 deletions src/mon/Monitor.h
Expand Up @@ -538,30 +538,7 @@ class Monitor : public Dispatcher,
*abs = abs_skew;
return (abs_skew > g_conf->mon_clock_drift_allowed);
}
/**
* @}
*/
/**
* @defgroup Monitor_h_stats Keep track of monitor statistics
* @{
*/
struct MonStatsEntry {
// data dir
uint64_t kb_total;
uint64_t kb_used;
uint64_t kb_avail;
unsigned int latest_avail_ratio;
utime_t last_update;
};

struct MonStats {
MonStatsEntry ours;
map<entity_inst_t,MonStatsEntry> others;
};

MonStats stats;

void stats_update();
/**
* @}
*/
Expand Down
1 change: 0 additions & 1 deletion src/mon/PGMonitor.h
Expand Up @@ -36,7 +36,6 @@ class MStatfs;
class MMonCommand;
class MGetPoolStats;

class RatioMonitor;
class TextTable;
class MPGStats;

Expand Down