Skip to content

Commit

Permalink
add last_seen_string for nextcloud user info (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
VVelox authored Nov 24, 2024
1 parent 9be4b6c commit 6d35274
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions snmp/nextcloud
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,14 @@ foreach my $user (@users) {
}
} ## end else [ if ( $last_seen eq '1970-01-01T00:00:00+00:00')]
$tojson{users}{$user} = {
'free' => $user_info->{storage}{free},
'quota' => $user_info->{storage}{quota},
'relative' => $user_info->{storage}{relative},
'total' => $user_info->{storage}{total},
'used' => $user_info->{storage}{used},
'last_seen' => $last_seen,
'calendars' => 0,
'free' => $user_info->{storage}{free},
'quota' => $user_info->{storage}{quota},
'relative' => $user_info->{storage}{relative},
'total' => $user_info->{storage}{total},
'used' => $user_info->{storage}{used},
'last_seen' => $last_seen,
'last_seen_string' => $user_info->{last_seen},
'calendars' => 0,
};
$tojson{free} = $user_info->{storage}{free};
$tojson{used} = $tojson{used} + $user_info->{storage}{used};
Expand Down

0 comments on commit 6d35274

Please sign in to comment.