Changeset 48
- Timestamp:
- 02/14/10 14:39:48 (15 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c
r47 r48 242 242 //strcat( ( char * ) uip_appdata, ( char * ) "\r\n" ); 243 243 244 sprintf( cCountBuf, "<p><br>TSTmeter % d %d %d %d %d %d %d %d\r\n",244 sprintf( cCountBuf, "<p><br>TSTmeter %u %u %u %u %u %u %u %u\r\n", 245 245 meterItems[METER_INDEX_TST].meterEnabled, 246 (portLONG)(meterItems[METER_INDEX_TST].timeLastTick <<32),246 (portLONG)(meterItems[METER_INDEX_TST].timeLastTick >> 32), 247 247 (portLONG)(meterItems[METER_INDEX_TST].timeLastTick & 0xffffffff), 248 (portLONG)(meterItems[METER_INDEX_TST].timeBeforeLastTick <<32),248 (portLONG)(meterItems[METER_INDEX_TST].timeBeforeLastTick >> 32), 249 249 (portLONG)(meterItems[METER_INDEX_TST].timeBeforeLastTick & 0xffffffff), 250 250 meterItems[METER_INDEX_TST].valueLastTick, … … 257 257 258 258 259 sprintf( cCountBuf, "GASmeter % d %d %d %d %d %d %d %d\r\n",259 sprintf( cCountBuf, "GASmeter %u %u %u %u %u %u %u %u\r\n", 260 260 meterItems[METER_INDEX_GAS].meterEnabled, 261 (portLONG)(meterItems[METER_INDEX_GAS].timeLastTick <<32),261 (portLONG)(meterItems[METER_INDEX_GAS].timeLastTick >> 32), 262 262 (portLONG)(meterItems[METER_INDEX_GAS].timeLastTick & 0xffffffff), 263 (portLONG)(meterItems[METER_INDEX_GAS].timeBeforeLastTick <<32),263 (portLONG)(meterItems[METER_INDEX_GAS].timeBeforeLastTick >> 32), 264 264 (portLONG)(meterItems[METER_INDEX_GAS].timeBeforeLastTick & 0xffffffff), 265 265 meterItems[METER_INDEX_GAS].valueLastTick, … … 272 272 273 273 274 sprintf( cCountBuf, "EL1meter % d %d %d %d %d %d %d %d\r\n",274 sprintf( cCountBuf, "EL1meter %u %u %u %u %u %u %u %u\r\n", 275 275 meterItems[METER_INDEX_EL1].meterEnabled, 276 (portLONG)(meterItems[METER_INDEX_EL1].timeLastTick <<32),276 (portLONG)(meterItems[METER_INDEX_EL1].timeLastTick >> 32), 277 277 (portLONG)(meterItems[METER_INDEX_EL1].timeLastTick & 0xffffffff), 278 (portLONG)(meterItems[METER_INDEX_EL1].timeBeforeLastTick <<32),278 (portLONG)(meterItems[METER_INDEX_EL1].timeBeforeLastTick >> 32), 279 279 (portLONG)(meterItems[METER_INDEX_EL1].timeBeforeLastTick & 0xffffffff), 280 280 meterItems[METER_INDEX_EL1].valueLastTick, … … 287 287 288 288 289 sprintf( cCountBuf, "EL2meter % d %d %d %d %d %d %d %d\r\n",289 sprintf( cCountBuf, "EL2meter %u %u %u %u %u %u %u %u\r\n", 290 290 meterItems[METER_INDEX_EL2].meterEnabled, 291 (portLONG)(meterItems[METER_INDEX_EL2].timeLastTick <<32),291 (portLONG)(meterItems[METER_INDEX_EL2].timeLastTick >> 32), 292 292 (portLONG)(meterItems[METER_INDEX_EL2].timeLastTick & 0xffffffff), 293 (portLONG)(meterItems[METER_INDEX_EL2].timeBeforeLastTick <<32),293 (portLONG)(meterItems[METER_INDEX_EL2].timeBeforeLastTick >> 32), 294 294 (portLONG)(meterItems[METER_INDEX_EL2].timeBeforeLastTick & 0xffffffff), 295 295 meterItems[METER_INDEX_EL2].valueLastTick,