mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix: integer division without cast
This commit is contained in:
parent
b103212a02
commit
eb1dd3f0ca
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ void hist_plot(struct hist *h)
|
|||
line();
|
||||
|
||||
for (int i = 0; i < h->length; i++) {
|
||||
int bar = HIST_HEIGHT * (h->data[i] / max);
|
||||
int bar = HIST_HEIGHT * ((double) h->data[i] / max);
|
||||
|
||||
info("%3u | %+5.2e | " "%5u" " | %.*s", i, VAL(h, i), h->data[i], bar, buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue