diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-11-30 11:10:21 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-11-30 11:10:21 -0500 |
commit | 7ae8529f2f653525f073e7bbbc39207417fc9c22 (patch) | |
tree | 73003639fa8a8de6f5bc93ad83cafc8d37c40a7d /dist | |
parent | bd0f24b3d6f95a05eba3c08bf817eb7e7d26675d (diff) | |
download | mongo-7ae8529f2f653525f073e7bbbc39207417fc9c22.tar.gz |
Make the autobuilt max_aggregate statistics code a little prettier,
don't break lines we don't need to break.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/stat.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dist/stat.py b/dist/stat.py index de9c58add46..6dcfccfeab5 100644 --- a/dist/stat.py +++ b/dist/stat.py @@ -196,9 +196,11 @@ __wt_stat_''' + name + '''_aggregate( break; for l in sorted(list): if 'max_aggregate' in l.flags: - o = '\tif ((v = WT_STAT_READ(from, ' + l.name + ')) >\n' +\ - '\t to->' + l.name + ')\n' +\ - '\t\tto->' + l.name + ' = v;\n' + o = '\tif ((v = WT_STAT_READ(from, ' + l.name + ')) > ' +\ + 'to->' + l.name + ')\n' + if len(o) > 72: # Account for the leading tab. + o = o.replace(' > ', ' >\n\t ') + o +='\t\tto->' + l.name + ' = v;\n' else: o = '\tto->' + l.name + ' += WT_STAT_READ(from, ' + l.name + ');\n' if len(o) > 72: # Account for the leading tab. |