# Bandwidth Limit Timetable Conflicts

**URL:** <https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083>\
**Category:** Dev Discussions\
**Created:** [April 6, 2022, 5:16am UTC](https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083 "2022-04-06T05:16:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdkjones](https://forum.rclone.org/user_avatar/forum.rclone.org/bdkjones/32/11118_2.png) [@bdkjones](https://forum.rclone.org/u/bdkjones)\
**Post date:** [April 6, 2022, 5:16am UTC](https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083/1 "2022-04-06T05:16:51Z")

</div>

Suppose I pass this option to rlcone:

```auto
--bwlimit "Mon-08:00,10M Mon-12:00,off Mon-12:00,5M"

```

What will the bandwidth limit be at noon on Monday: `unlimited` or `5M`? And what is the general rule for resolving conflicts like this? (Is it "last entry wins", "first entry wins", "undefined which wins", etc?)

I know this seems dumb—"just don't write your timetable that way, idiot". But I'm building a UI and need to know the details about how conflicts are handled so that I can sanitize user timetable inputs, if required. Thank you!

---

<div class="post-metadata">

**Author:** ![bdkjones](https://forum.rclone.org/user_avatar/forum.rclone.org/bdkjones/32/11118_2.png) [@bdkjones](https://forum.rclone.org/u/bdkjones)\
**Post date:** [April 6, 2022, 5:24am UTC](https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083/2 "2022-04-06T05:24:12Z")

</div>

You can imagine a UI that is a table of "rules", like this (where each item in brackets is a popup button with options):

```auto
- On [Monday] from [08:00] to [12:00], limit bandwidth to [10 MiB/s]
- On [Monday] from [12:00] to [17:00], limit bandwidth to [5 MiB/s]

```

Because the UI offers "windows" of time (e.g. 8-12), the literal translation of the above to rlcone syntax would be:

```auto
--bwlimit "Mon-08:00,10M Mon-12:00,off Mon-12:00,5M Mon-17:00,off"

```

The `Mon-12:00,off` is superfluous in this case, but if I can pass it as above, that GREATLY simplifies the parsing/validating I must do when processing the user's rules. I can always just pass a start and end entry; I don't need to figure out if the end entry overlaps with whatever the next entry is, then modify them to remove the overlap, etc. If rlcone already does that work, I don't want to duplicate it.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [April 6, 2022, 1:34pm UTC](https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083/3 "2022-04-06T13:34:03Z")

</div>

I think the last entry wins.

If you want to see exactly how rclone interpreted a bwlimit command then use the RC API to read the config back as JSON and you'll see it expanded I try think.

---

<div class="post-metadata">

**Author:** ![xsiv](https://forum.rclone.org/letter_avatar_proxy/v4/letter/x/9fc29f/32.png) [@xsiv](https://forum.rclone.org/u/xsiv)\
**Post date:** [April 6, 2022, 11:36pm UTC](https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083/4 "2022-04-06T23:36:04Z")

</div>

[API Documentation - LetsUpload Unlimited Cloud Storage](https://letsupload.io/api) amigo em outro tópico você disse não encontrar API pra LetsUpload isso foi o que encontrei e só não mandei em outro tópico porque lá foi fechado, desculpa pela bagunça

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [June 6, 2022, 7:36pm UTC](https://forum.rclone.org/t/bandwidth-limit-timetable-conflicts/30083/5 "2022-06-06T19:36:07Z")

</div>

Closed on June 6, 2022, 7:36pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
