瀏覽代碼

gallium/hud: remove uint64_t casts in sensor query_sti_load() function

The hud_graph_add_value() function takes a double value, so just pass
the current/critical values as-is since they're doubles.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
tags/18.0-branchpoint
Brian Paul 7 年之前
父節點
當前提交
23a5fae317
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. 5
    5
      src/gallium/auxiliary/hud/hud_sensors_temp.c

+ 5
- 5
src/gallium/auxiliary/hud/hud_sensors_temp.c 查看文件

@@ -165,19 +165,19 @@ query_sti_load(struct hud_graph *gr)

switch (sti->mode) {
case SENSORS_TEMP_CURRENT:
hud_graph_add_value(gr, (uint64_t) sti->current);
hud_graph_add_value(gr, sti->current);
break;
case SENSORS_TEMP_CRITICAL:
hud_graph_add_value(gr, (uint64_t) sti->critical);
hud_graph_add_value(gr, sti->critical);
break;
case SENSORS_VOLTAGE_CURRENT:
hud_graph_add_value(gr, (uint64_t)(sti->current * 1000));
hud_graph_add_value(gr, sti->current * 1000);
break;
case SENSORS_CURRENT_CURRENT:
hud_graph_add_value(gr, (uint64_t) sti->current);
hud_graph_add_value(gr, sti->current);
break;
case SENSORS_POWER_CURRENT:
hud_graph_add_value(gr, (uint64_t) sti->current);
hud_graph_add_value(gr, sti->current);
break;
}


Loading…
取消
儲存