diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 12:49:37 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 12:49:37 +0100 |
commit | f40932d670bbb8a2dd0064e27946e415d7994f43 (patch) | |
tree | 5d1b99978eb00d50249a10720543faa593d33779 /src/mds/MDBalancer.h | |
parent | mds/MDBalancer.cc: use static_cast instead of C-Style cast (diff) | |
download | ceph-f40932d670bbb8a2dd0064e27946e415d7994f43.tar.xz ceph-f40932d670bbb8a2dd0064e27946e415d7994f43.zip |
mds/MDBalancer.h: init some double variables in constructor
Initialize double variables my_load and target_load with 0.0 in
the constructor.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to '')
-rw-r--r-- | src/mds/MDBalancer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/MDBalancer.h b/src/mds/MDBalancer.h index 0aa931fdfe4..e73a08820a2 100644 --- a/src/mds/MDBalancer.h +++ b/src/mds/MDBalancer.h @@ -77,7 +77,7 @@ public: MDBalancer(MDS *m) : mds(m), beat_epoch(0), - last_epoch_under(0), last_epoch_over(0) { } + last_epoch_under(0), last_epoch_over(0), my_load(0.0), target_load(0.0) { } mds_load_t get_load(utime_t); |