diff options
| author | Damien Bouvy <dbo@odoo.com> | 2020-04-17 10:08:10 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-08-05 14:09:28 +0000 |
| commit | fbf229941854987766875c7301ce1df74c7dcf48 (patch) | |
| tree | 2998c6b9efea77d6d9263ef8c584891217ebcd70 /addons/base_import/static/lib/javascript-state-machine | |
| parent | edbfa024d6e758efc9084bf25a31ad27eb78ed8f (diff) | |
[IMP] odoo: avoid warning regarding resource arg format
`struct_rusage.ru_utime` and `struct_rusage.ru_stime` are float
seconds.
`setrlimit()` takes a tuple of *integers*, and recent versions of
Python have started triggering warnings:
DeprecationWarning: an integer is required (got type
float). Implicit conversion to integers using __int__ is
deprecated, and may be removed in a future version of Python.
Convert the soft cpu time limit to an integer explicitly to suppress
the warning.
closes odoo/odoo#49710
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Diffstat (limited to 'addons/base_import/static/lib/javascript-state-machine')
0 files changed, 0 insertions, 0 deletions
