[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[merchant] 03/04: remove dependency on bc
From: |
gnunet |
Subject: |
[merchant] 03/04: remove dependency on bc |
Date: |
Sun, 02 Feb 2025 15:49:45 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
commit 85694e21a8e2600acb2fb20abe173ca899fd01e7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Feb 2 15:49:10 2025 +0100
remove dependency on bc
---
src/testing/test_merchant_order_creation.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/testing/test_merchant_order_creation.sh
b/src/testing/test_merchant_order_creation.sh
index 331f799c..38ed79fa 100755
--- a/src/testing/test_merchant_order_creation.sh
+++ b/src/testing/test_merchant_order_creation.sh
@@ -267,7 +267,7 @@ echo "Ok"
echo -n "Creating subscription token family..."
VALID_AFTER="{\"t_s\": $(date +%s)}" # now
VALID_BEFORE="{\"t_s\": $(date +%s -d "+30 days")}" # 30 days from now
-DURATION="{\"d_us\": $(echo '30 * 24 * 60 * 60 * 1000000' | bc)}" # 30 days
+DURATION="{\"d_us\": $(expr 30 \* 24 \* 60 \* 60 \* 1000000)}" # 30 days
STATUS=$(curl 'http://localhost:9966/private/tokenfamilies' \
-d "{\"kind\": \"subscription\", \"slug\":\"test-subscription\",
\"name\": \"Test subscription\", \"description\": \"Money per month\",
\"description_i18n\": {\"en\": \"Money $$$ per month\", \"es\": \"Dinero $$$ al
mes\"}, \"valid_after\": $VALID_AFTER, \"valid_before\": $VALID_BEFORE,
\"duration\": $DURATION, \"validity_granularity\": $DURATION}" \
-w "%{http_code}" -s -o /dev/null)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.