]> git.proxmox.com Git - pve-common.git/blobdiff - test/format_test.pl
cgroup: cpu quota: fix resetting period length for v1
[pve-common.git] / test / format_test.pl
index b6688ab2cf95ec5ce42c595e581796805f9130a0..32c00f1f5e1a05c7275d7fae2a6aaf38b8c389c4 100755 (executable)
@@ -31,9 +31,11 @@ my $render_data = [
     ["timestamp", 1612776831, undef, "2021-02-08 10:33:51"],
     ["timestamp_gmt", 0, undef, "1970-01-01 00:00:00"],
     ["timestamp_gmt", 1612776831, undef, "2021-02-08 09:33:51"],
-    ["duration", 0, undef, ""],
+    ["duration", undef, undef, "0s"],
+    ["duration", 0.3, undef, "0s"],
+    ["duration", 0, undef, "0s"],
     ["duration", 40, undef, "40s"],
-    ["duration", 60, undef, "1m"],
+    ["duration", 59.64432, undef, "1m"],
     ["duration", 110, undef, "1m 50s"],
     ["duration", 7*24*3829*2, undef, "2w 21h 22m 24s"],
     ["fraction_as_percentage", 0.412, undef, "41.20%"],