Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wiaflos
wiaflos
Commits
1d831d47
Commit
1d831d47
authored
Jan 31, 2020
by
Nigel Kukard
Browse files
Merge branch 'nkupdates' into 'master'
Fixed undef errors See merge request
!52
parents
7f1633b5
2918ef2c
Pipeline
#5181
passed with stages
in 3 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/server/core/Reporting.pm
View file @
1d831d47
...
@@ -652,7 +652,7 @@ sub sendReport
...
@@ -652,7 +652,7 @@ sub sendReport
# Check what type we are
# Check what type we are
if
(
lc
(
$type
)
eq
"
float
")
{
if
(
lc
(
$type
)
eq
"
float
")
{
$variables
{
$item
}{'
type
'}
=
"
float
";
$variables
{
$item
}{'
type
'}
=
"
float
";
$variables
{
$item
}{'
value
'}
=
new
Math::
BigFloat
();
$variables
{
$item
}{'
value
'}
=
new
Math::
BigFloat
(
0
);
$variables
{
$item
}{'
value
'}
->
precision
(
-
2
);
$variables
{
$item
}{'
value
'}
->
precision
(
-
2
);
}
}
# We shouldn't return results
# We shouldn't return results
...
@@ -775,7 +775,7 @@ sub sendReport
...
@@ -775,7 +775,7 @@ sub sendReport
my
$suffix
=
"";
my
$suffix
=
"";
# Pull in value
# Pull in value
my
$amount
=
new
Math::
BigFloat
();
my
$amount
=
new
Math::
BigFloat
(
0
);
$amount
->
precision
(
-
2
);
$amount
->
precision
(
-
2
);
$amount
->
badd
(
$pamount
);
$amount
->
badd
(
$pamount
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment