Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix-1069
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceaulinic authored Jan 5, 2021
2 parents f048043 + c3b8222 commit 0fb9fcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ matrix:
- python: nightly

install:
- pip install tox==3.14.0 tox-travis==0.12 coveralls==1.8.2
- pip install tox==3.14.0 tox-travis==0.12 coveralls==2.2.0

deploy:
provider: pypi
Expand Down
8 changes: 4 additions & 4 deletions napalm/nxos/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,10 +837,10 @@ def get_facts(self):
"sys_ver_str", show_version.get("kickstart_ver_str", "")
)

uptime_days = show_version.get("kern_uptm_days", 0)
uptime_hours = show_version.get("kern_uptm_hrs", 0)
uptime_mins = show_version.get("kern_uptm_mins", 0)
uptime_secs = show_version.get("kern_uptm_secs", 0)
uptime_days = int(show_version.get("kern_uptm_days", 0))
uptime_hours = int(show_version.get("kern_uptm_hrs", 0))
uptime_mins = int(show_version.get("kern_uptm_mins", 0))
uptime_secs = int(show_version.get("kern_uptm_secs", 0))

uptime = 0
uptime += uptime_days * 24 * 60 * 60
Expand Down

0 comments on commit 0fb9fcd

Please sign in to comment.