diff options
| author | Nils Maier <maierman@web.de> | 2014-05-27 21:36:24 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-05-27 21:37:15 +0200 |
| commit | 0465aa54557e802156d1df0661c29d2aadb5541d (patch) | |
| tree | d766a8b98bf4fb695bc9f9eb1c2de095f5425878 /src/RequestGroup.h | |
| parent | 6e546245e4ecf2b084cdb78afff20c0e7492dd9a (diff) | |
Cleanup AbstractCommand
In my quest to explore the code and understand it, why not clean it up
in the progress. Most formatting provided by clang-format. ;)
Aside from formatting, also extracted some method and unnested some
control structs.
Diffstat (limited to 'src/RequestGroup.h')
| -rw-r--r-- | src/RequestGroup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RequestGroup.h b/src/RequestGroup.h index 25c163f0..81581d88 100644 --- a/src/RequestGroup.h +++ b/src/RequestGroup.h @@ -241,6 +241,11 @@ public: int64_t getCompletedLength() const; + inline int64_t getPendingLength() const + { + return getTotalLength() - getCompletedLength(); + } + /** * Compares expected filename with specified actualFilename. * The expected filename refers to FileEntry::getBasename() of the first |
