aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/nms/web.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index 18fe919..fcd45b4 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -76,7 +76,9 @@ sub setwhen {
sub finalize_output {
my $query;
- my $hash = Digest::SHA::sha512_base64(FreezeThaw::freeze(%json));
+ $Data::Dumper::Indent = 0;
+ $Data::Dumper::Sortkeys = 1;
+ my $hash = Digest::SHA::sha512_base64(Data::Dumper::Dumper(\%json));
$dbh->commit;
$query = $dbh->prepare('select extract(epoch from date_trunc(\'seconds\', ' . $now . ')) as time;');
$query->execute();