utime_t(const struct timeval *v) {
set_from_timeval(v);
}
- explicit utime_t(double d) {
- set_from_double(d);
- }
void to_timespec(struct timespec *ts) const {
ts->tv_sec = tv.tv_sec;
ts->tv_nsec = tv.tv_nsec;
uint64_t max_size, uint64_t max_dirty, uint64_t target_dirty, double max_dirty_age)
: perfcounter(NULL),
cct(cct_), writeback_handler(wb), name(name), lock(l),
- max_dirty(max_dirty), target_dirty(target_dirty), max_size(max_size), max_dirty_age(max_dirty_age),
+ max_dirty(max_dirty), target_dirty(target_dirty), max_size(max_size),
flush_set_callback(flush_callback), flush_set_callback_arg(flush_callback_arg),
flusher_stop(false), flusher_thread(this),
stat_clean(0), stat_dirty(0), stat_rx(0), stat_tx(0), stat_missing(0), stat_dirty_waiting(0)
{
+ this->max_dirty_age.set_from_double(max_dirty_age);
perf_start();
}