Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-who committed Feb 22, 2024
1 parent c5c92e1 commit cbc08e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spit/advertise-mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ void *advertiseMC(void *arg) {
size_t ssdnum = blockDevicesCount(bd, NULL, &ssdsize);

keyvalueSetLong(kv, "HDDcount", hddnum);
keyvalueSetLong(kv, "HDDsizeGB", hddsize / 1000.0 / 1000 / 1000);;
keyvalueSetLong(kv, "HDDsizeGB", ceil(hddsize / 1000.0 / 1000 / 1000));
keyvalueSetLong(kv, "SSDcount", ssdnum);
keyvalueSetLong(kv, "SSDsizeGB", ssdsize / 1000.0 / 1000 / 1000);;
keyvalueSetLong(kv, "SSDsizeGB", ceil(ssdsize / 1000.0 / 1000 / 1000));

keyvalueSetLong(kv, "Cores", getNumHardwareThreads());
keyvalueSetLong(kv, "RAMGB", totalRAM()/1024/1024/1024);
keyvalueSetLong(kv, "RAMGB", ceil(totalRAM()/1024.0/1024/1024));

keyvalueSetString(kv, "ip", adv_ip);

Expand Down

0 comments on commit cbc08e3

Please sign in to comment.