diff options
Diffstat (limited to 'src/daq/accesslog')
-rwxr-xr-x | src/daq/accesslog/sfive-accesslog.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/daq/accesslog/sfive-accesslog.py b/src/daq/accesslog/sfive-accesslog.py index 133ff46..da77f98 100755 --- a/src/daq/accesslog/sfive-accesslog.py +++ b/src/daq/accesslog/sfive-accesslog.py @@ -200,12 +200,7 @@ class AccessLog(): linedata[part] = None linedata["status"] = int(linedata["status"]) - - if linedata["size"] == "-": - linedata["size"] = 0 - else: - linedata["size"] = int(linedata["size"]) - + linedata["size"] = 0 if linedata["size"] == "-" else int(linedata["size"]) linedata['req'] = self._parseRequest(linedata['req']) linedata['ts'] = self._parseDatetime(linedata['ts']) return linedata |