slackbuilds

My Slackbuilds
git clone git://git.server.ky/slackcoder/slackbuilds
Log | Files | Refs | README

2-remove-double-constant.patch (1718B)


      1 diff -ru a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
      2 --- a/src/benchmark/taler-exchange-benchmark.c	2024-10-01 14:48:00.588810485 -0500
      3 +++ b/src/benchmark/taler-exchange-benchmark.c	2024-10-01 14:49:16.372809128 -0500
      4 @@ -296,7 +296,7 @@
      5                                       GNUNET_TIME_UNIT_ZERO,
      6                                       amount_1,
      7                                       MHD_HTTP_OK));
      8 -      if (eval_probability (refresh_rate / 100.0d))
      9 +      if (eval_probability (refresh_rate / 100.0))
     10        {
     11          char *melt_label;
     12          char *reveal_label;
     13 @@ -630,7 +630,7 @@
     14               " * Reserve=%u * Parallel=%u, operations in %s\n",
     15               howmany_coins,
     16               howmany_coins,
     17 -             howmany_coins * (refresh_rate / 100.0d),
     18 +             howmany_coins * (refresh_rate / 100.0),
     19               howmany_reserves,
     20               howmany_clients,
     21               GNUNET_STRINGS_relative_time_to_string (
     22 diff -ru a/src/lib/exchange_api_stefan.c b/src/lib/exchange_api_stefan.c
     23 --- a/src/lib/exchange_api_stefan.c	2024-10-01 14:48:00.564810485 -0500
     24 +++ b/src/lib/exchange_api_stefan.c	2024-10-01 14:49:16.396809127 -0500
     25 @@ -125,7 +125,7 @@
     26    min = get_unit (keys);
     27    if (NULL == min)
     28      return GNUNET_SYSERR;
     29 -  if (1.0d <= keys->stefan_lin)
     30 +  if (1.0 <= keys->stefan_lin)
     31    {
     32      /* This cannot work, linear STEFAN fee estimate always
     33         exceed any gross amount. */
     34 @@ -273,7 +273,7 @@
     35    min = get_unit (keys);
     36    if (NULL == min)
     37      return GNUNET_SYSERR;
     38 -  if (1.0d <= keys->stefan_lin)
     39 +  if (1.0 <= keys->stefan_lin)
     40    {
     41      /* This cannot work, linear STEFAN fee estimate always
     42         exceed any gross amount. */