Skip to content

Commit

Permalink
added output of DAYS_TO_KEEP_IN_THE_PAST
Browse files Browse the repository at this point in the history
  • Loading branch information
stevleibelt committed Mar 7, 2022
1 parent c906624 commit 6eaad14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

* Changed output of statistics generation script

## [1.1.2](https://github.com/bazzline/mattermost_housekeeping/tree/1.1.0) - released at 20220307

* Added outputting of the configured value of `DAYS_TO_KEEP_IN_THE_PAST`

## [1.1.1](https://github.com/bazzline/mattermost_housekeeping/tree/1.1.0) - released at 20220307

### Changed
Expand Down
1 change: 1 addition & 0 deletions bin/do_the_housekeeping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function do_the_housekeeping ()

local DATETIME_LIMIT_AS_VALUE=$(( ${DATETIME_LIMIT_AS_TIMESTAMP} * 1000 ))

_log_message debug ":: From the configuration, we are using >>${DAYS_TO_KEEP_IN_THE_PAST}<< days to keep as base."
_log_message info ":: Removing entries older than >>${DATETIME_LIMIT_AS_STRING}<< which is >>${DATETIME_LIMIT_AS_VALUE}<< as value."

_process_table_posts ${DATETIME_LIMIT_AS_VALUE}
Expand Down
1 change: 1 addition & 0 deletions bin/generate_statistics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function generate_statistics ()

local DATETIME_LIMIT_AS_VALUE=$(( ${DATETIME_LIMIT_AS_TIMESTAMP} * 1000 ))

echo ":: From the configuration, we are using >>${DAYS_TO_KEEP_IN_THE_PAST}<< days to keep as base."
echo ":: Limitation datetime is >>${DATETIME_LIMIT_AS_STRING}<< which is >>${DATETIME_LIMIT_AS_VALUE}<< as value."

_generate_statistic_per_table "Posts" ${DATETIME_LIMIT_AS_VALUE}
Expand Down

0 comments on commit 6eaad14

Please sign in to comment.