[riot-commits] [RIOT-OS/RIOT] 70dae3: sys/ps: s/float/int for runtime

Oleg Hahm oleg at hobbykeller.org
Sun Jul 6 18:15:38 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 70dae32a3f507525f4229ae1e0d27cce6f273c14
      https://github.com/RIOT-OS/RIOT/commit/70dae32a3f507525f4229ae1e0d27cce6f273c14
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-07-04 (Fri, 04 Jul 2014)

  Changed paths:
    M sys/ps/ps.c

  Log Message:
  -----------
  sys/ps: s/float/int for runtime

The high precision isn't needed, use per mille instead.
Circumvents printf problems on some platforms.

Also: prevent division by zero.


  Commit: 295f32ac1be175937d925c3324dfdf8ff7fe678d
      https://github.com/RIOT-OS/RIOT/commit/295f32ac1be175937d925c3324dfdf8ff7fe678d
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-07-04 (Fri, 04 Jul 2014)

  Changed paths:
    M sys/ps/ps.c

  Log Message:
  -----------
  sys/ps: fix comment style, superfluous declaration


  Commit: e1b0efe9e668f02a8def3d7f2aba6f81dc19a91f
      https://github.com/RIOT-OS/RIOT/commit/e1b0efe9e668f02a8def3d7f2aba6f81dc19a91f
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-07-06 (Sun, 06 Jul 2014)

  Changed paths:
    M sys/ps/ps.c

  Log Message:
  -----------
  Merge pull request #1352 from LudwigOrtmann/nofloat

sys/ps: don't use float for runtime calculations


Compare: https://github.com/RIOT-OS/RIOT/compare/ade7c42d42b5...e1b0efe9e668


More information about the commits mailing list