Revision 59e008ed chunker_player/player_core.c
chunker_player/player_core.c | ||
---|---|---|
1467 | 1467 |
#ifdef PSNR_PUBLICATION |
1468 | 1468 |
// Publish measure into repository |
1469 | 1469 |
MeasurementRecord r; |
1470 |
strcpy(r.originator,NetworkID);
|
|
1471 |
strcpy(r.targetA,NetworkID);
|
|
1472 |
strcpy(r.targetB,"");
|
|
1473 |
strcpy(r.published_name,"PSNR");
|
|
1470 |
r.originator = NetworkID;
|
|
1471 |
r.targetA = NetworkID;
|
|
1472 |
r.targetB = "";
|
|
1473 |
r.published_name = "PSNR_MEAN";
|
|
1474 | 1474 |
r.value = qoe; |
1475 | 1475 |
r.string_value = NULL; |
1476 |
strcpy(r.channel,Channels[SelectedChannel].Title);
|
|
1476 |
r.channel = Channels[SelectedChannel].Title;
|
|
1477 | 1477 |
gettimeofday(&(r.timestamp), NULL); |
1478 | 1478 |
// One update every REPO_UPDATE_INTERVALL seconds |
1479 | 1479 |
struct timeval ElapsedTime; |
... | ... | |
1482 | 1482 |
{ |
1483 | 1483 |
LastTimeRepoPublish=r.timestamp; |
1484 | 1484 |
if(repPublish(repoclient,NULL,NULL,&r)!=NULL) |
1485 |
printf("VALORE PUBBLICATO: %s %e %s\n",r.originator,qoe,r.channel); |
|
1485 |
#ifdef DEBUG_PSNR |
|
1486 |
printf("PSNR publish: %s %e %s\n",r.originator,qoe,r.channel); |
|
1487 |
#endif |
|
1486 | 1488 |
} |
1487 | 1489 |
#endif |
1488 | 1490 |
} |
Also available in: Unified diff