2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Renamed member variables
	* src/TimeSeedCriteria.h
pull/1/head
Tatsuhiro Tsujikawa 2010-06-12 14:03:54 +00:00
parent c47eaa5ce3
commit 706230c21f
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Renamed member variables
* src/TimeSeedCriteria.h
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Renamed member variables

View File

@ -44,26 +44,26 @@ namespace aria2 {
class TimeSeedCriteria : public SeedCriteria {
private:
// How much time the client does seeding in seconds.
time_t duration;
Timer watch;
time_t _duration;
Timer _watch;
public:
TimeSeedCriteria(time_t duration):duration(duration) {}
TimeSeedCriteria(time_t duration):_duration(duration) {}
virtual ~TimeSeedCriteria() {}
virtual void reset() {
watch = global::wallclock;
_watch = global::wallclock;
}
virtual bool evaluate() {
return watch.difference(global::wallclock) >= duration;
return _watch.difference(global::wallclock) >= _duration;
}
void setDuration(time_t duration) {
this->duration = duration;
_duration = duration;
}
time_t getDuration() const {
return duration;
return _duration;
}
};