]> git.sur5r.net Git - bacula/bacula/commitdiff
Correct L suffix to be LL
authorKern Sibbald <kern@sibbald.com>
Fri, 27 Jun 2014 12:33:22 +0000 (14:33 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 12 Jul 2014 13:34:55 +0000 (15:34 +0200)
bacula/src/dird/ua_cmds.c

index 9e62afc8c2acba33b25fbf481f5cc44cf1b81f83..b01b8cc19ee525bff5fdeee5e09b22c3fd4e2c35 100644 (file)
@@ -706,13 +706,13 @@ static int setbwlimit_cmd(UAContext *ua, const char *cmd)
 
    i = find_arg_with_value(ua, "limit");
    if (i >= 0) {
-      limit = atoi(ua->argv[i]) * 1024L;
+      limit = atoi(ua->argv[i]) * 1024LL;
    }
    if (limit < 0) {
       if (!get_pint(ua, _("Enter new bandwidth limit kb/s: "))) {
          return 1;
       }
-      limit = ua->pint32_val * 1024L; /* kb/s */
+      limit = ua->pint32_val * 1024LL; /* kb/s */
    }
 
    const char *lst[] = { "job", "jobid", "jobname", NULL };