mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-07 20:30:41 +01:00
fix some nits found by analyzers
This commit is contained in:
parent
47a124fbe9
commit
e0d62c6443
@ -6,7 +6,7 @@
|
||||
srcdir=$(dirname $0)
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
(test -f $srcdir/configure.ac) || {
|
||||
test -f $srcdir/configure.ac || {
|
||||
printf '**Error**: Directory "%s" does not look like the\n' "$srcdir"
|
||||
printf ' top-level package directory'
|
||||
exit 1
|
||||
|
||||
@ -331,7 +331,7 @@ else:
|
||||
|
||||
|
||||
print " End analyzing logdata"
|
||||
|
||||
|
||||
print"Begin showing found problems."
|
||||
if len(aPossibleProblems) > 0:
|
||||
# Output all found problems!
|
||||
|
||||
@ -157,7 +157,7 @@ else:
|
||||
iTimeStamp = int(time.mktime(myDateTime.timetuple()))
|
||||
|
||||
# Init Start Seconds
|
||||
if iStartSeconds == 0:
|
||||
if iStartSeconds == 0:
|
||||
iStartSeconds = iTimeStamp
|
||||
|
||||
# Set data field
|
||||
@ -276,7 +276,7 @@ else:
|
||||
myChart.add(aFields[iChartNum], aData[ aFields[iChartNum] ]) # Add some values
|
||||
# for iChartNum in range(3, len(aFields) ):
|
||||
# myChart.add(aFields[iChartNum], aData[ aFields[iChartNum] ]) # Add some values
|
||||
|
||||
|
||||
# Render Chart now and output to file!
|
||||
if bConvertPng:
|
||||
szPngFileName = szOutputFile[:-4] + ".png"
|
||||
|
||||
@ -116,7 +116,7 @@ def checkErrorInterleaved():
|
||||
print item
|
||||
print "Unknown item found"
|
||||
sys.exit(4)
|
||||
|
||||
|
||||
return 0
|
||||
|
||||
def checkInterleaved():
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
-or-
|
||||
see COPYING.ASL20 in the source distribution
|
||||
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user