| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 It contains the definition of the following Behaviors: | 6 It contains the definition of the following Behaviors: |
| 7 | 7 |
| 8 SwarmingBehaviors.CommonBehavior | 8 SwarmingBehaviors.CommonBehavior |
| 9 | 9 |
| 10 To use it, include | 10 To use it, include |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // now is used. | 137 // now is used. |
| 138 _timeDiffExact: function(first, second){ | 138 _timeDiffExact: function(first, second){ |
| 139 if (!first) { | 139 if (!first) { |
| 140 return "eons"; | 140 return "eons"; |
| 141 } | 141 } |
| 142 if (!second) { | 142 if (!second) { |
| 143 second = new Date(); | 143 second = new Date(); |
| 144 } | 144 } |
| 145 return this._humanDuration((second.getTime() - first.getTime())/1000); | 145 return this._humanDuration((second.getTime() - first.getTime())/1000); |
| 146 }, | 146 }, |
| 147 |
| 148 _truthy: function(a){ |
| 149 return !!a; |
| 150 } |
| 147 }; | 151 }; |
| 148 })(); | 152 })(); |
| 149 </script> | 153 </script> |
| OLD | NEW |