Skip to content

Commit

Permalink
save the total for nextcloud storage info (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
VVelox authored Nov 25, 2024
1 parent 6d35274 commit 178931b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snmp/nextcloud
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ foreach my $user (@users) {
'calendars' => 0,
};
$tojson{free} = $user_info->{storage}{free};
$tojson{total} = $user_info->{storage}{total};
$tojson{used} = $tojson{used} + $user_info->{storage}{used};
if ( $user_info->{storage}{quota} > 0 ) {
$tojson{quota} = $tojson{quota} + $user_info->{storage}{quota};
Expand Down

0 comments on commit 178931b

Please sign in to comment.