summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
commitca4940622c05e50a50f77c621ade914029663446 (patch)
tree2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/FileAllocationCommand.cc
parentae957baa98d4f97ea2437596db5073f9c33d22ae (diff)
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index eeb85a96..8d67a68b 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -56,7 +56,7 @@ FileAllocationCommand::FileAllocationCommand
(cuid_t cuid, RequestGroup* requestGroup, DownloadEngine* e,
const SharedHandle<FileAllocationEntry>& fileAllocationEntry):
RealtimeCommand(cuid, requestGroup, e),
- _fileAllocationEntry(fileAllocationEntry) {}
+ fileAllocationEntry_(fileAllocationEntry) {}
FileAllocationCommand::~FileAllocationCommand() {}
@@ -66,19 +66,19 @@ bool FileAllocationCommand::executeInternal()
getDownloadEngine()->getFileAllocationMan()->dropPickedEntry();
return true;
}
- _fileAllocationEntry->allocateChunk();
- if(_fileAllocationEntry->finished()) {
+ fileAllocationEntry_->allocateChunk();
+ if(fileAllocationEntry_->finished()) {
if(getLogger()->debug()) {
getLogger()->debug
(MSG_ALLOCATION_COMPLETED,
- _timer.difference(global::wallclock),
+ timer_.difference(global::wallclock),
util::itos(getRequestGroup()->getTotalLength(), true).c_str());
}
getDownloadEngine()->getFileAllocationMan()->dropPickedEntry();
std::vector<Command*>* commands = new std::vector<Command*>();
auto_delete_container<std::vector<Command*> > commandsDel(commands);
- _fileAllocationEntry->prepareForNextAction(*commands, getDownloadEngine());
+ fileAllocationEntry_->prepareForNextAction(*commands, getDownloadEngine());
getDownloadEngine()->addCommand(*commands);
commands->clear();
getDownloadEngine()->setNoWait(true);