chiark / gitweb /
dice: Cooldown template: Use total_ms for duration variable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 17:47:14 +0000 (18:47 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 19:39:28 +0000 (20:39 +0100)
Make the units clearer.  We will provide a value for this from a
Serialize context struct in the Rust code, which is still to come.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dice/cooldown-template-extractor

index b077dc5cac4abe26d70ef6264ab4ae5cffcc4a12..57e31ce0167a49c98347292088513ce9d6c8121d 100755 (executable)
@@ -57,7 +57,7 @@ process_node('timegrey', sub {
   filter_element('path');
   $node->setAttribute('d', "{{path_d}}");
   $node->setAttribute('id', "{{cd_elid}}");
-  foreach my $d (qw(remprop total)) {
+  foreach my $d (qw(remprop total_ms)) {
     $node->setAttribute("data-$d", "{{$d}}");
   }
 });