journal_watch.sh � Spurious comma in convert_to_bytes call (syntax/logic error)
When a threshold value ends with %, the script passes the total disk size as a second argument, but introduces a stray comma:
The comma is outside the quotes, so bash passes "$P4JOURNALMIN", (literally with a trailing comma) as the first argument to convert_to_bytes. This will break the percentage-based threshold calculation entirely � the value won't be recognized as a percentage and the conversion will likely return 0 or garbage. The same error appears in all three percentage-handling blocks (P4JOURNALMIN, P4JOURNALWARN, P4JOURNALROTATE). The fix is to remove the commas: