Review Request 56249: Cleaned up code style slightly in DRF sorter.

2017-02-02 Thread Neil Conway

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56249/
---

Review request for mesos and Michael Park.


Repository: mesos


Description
---

Cleaned up code style slightly in DRF sorter.


Diffs
-

  src/master/allocator/sorter/drf/sorter.cpp 
5681a5d78a7bdde820c3a8633d742d9d6412f1c7 

Diff: https://reviews.apache.org/r/56249/diff/


Testing
---

`make check`


Thanks,

Neil Conway



Re: Review Request 56249: Cleaned up code style slightly in DRF sorter.

2017-02-03 Thread Michael Park

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56249/#review164206
---


Fix it, then Ship it!





src/master/allocator/sorter/drf/sorter.cpp (line 390)


Do you not want to just go all the way to this?
```cpp
foreach (const Client& client, clients) {
  // ...
}
```

Here and below.


- Michael Park


On Feb. 2, 2017, 2:59 p.m., Neil Conway wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56249/
> ---
> 
> (Updated Feb. 2, 2017, 2:59 p.m.)
> 
> 
> Review request for mesos and Michael Park.
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Cleaned up code style slightly in DRF sorter.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/sorter/drf/sorter.cpp 
> 5681a5d78a7bdde820c3a8633d742d9d6412f1c7 
> 
> Diff: https://reviews.apache.org/r/56249/diff/
> 
> 
> Testing
> ---
> 
> `make check`
> 
> 
> Thanks,
> 
> Neil Conway
> 
>



Re: Review Request 56249: Cleaned up code style slightly in DRF sorter.

2017-02-05 Thread Neil Conway

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56249/
---

(Updated Feb. 5, 2017, 10:01 p.m.)


Review request for mesos and Michael Park.


Changes
---

Use `foreach`


Repository: mesos


Description
---

Cleaned up code style slightly in DRF sorter.


Diffs (updated)
-

  src/master/allocator/sorter/drf/sorter.cpp 
5681a5d78a7bdde820c3a8633d742d9d6412f1c7 

Diff: https://reviews.apache.org/r/56249/diff/


Testing
---

`make check`


Thanks,

Neil Conway