]> git.proxmox.com Git - pve-zsync.git/commitdiff
rename encode_cron to parse_cron
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 21 Feb 2022 09:07:49 +0000 (10:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Feb 2022 14:53:50 +0000 (15:53 +0100)
The old name is confusing, because "encode" is usually not used when
converting from text to a data structure.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
pve-zsync

index b466076225c139f5da7383ec613e527c7f996772..7246336cfff162fc8eb119cfc0c6e5b3b1864d7a 100755 (executable)
--- a/pve-zsync
+++ b/pve-zsync
@@ -232,7 +232,7 @@ sub read_cron {
 
     my $text = read_file($CRONJOBS, 0);
 
-    return encode_cron(@{$text});
+    return parse_cron(@{$text});
 }
 
 sub parse_argv {
@@ -302,7 +302,7 @@ sub add_state_to_job {
     return $job;
 }
 
-sub encode_cron {
+sub parse_cron {
     my (@text) = @_;
 
     my $cfg = {};