git-svn-id: http://www.frescor.org/private/svn/frescor/fna/trunk@1373
35b4ef3e-fd22-0410-ab77-
dab3279adceb
#define PUT_ERROR(s) {perror (s); exit (-1);}
#define NETWORK 0
-#define LOCAL_NODE 1
+#define LOCAL_NODE 0
int main ()
{
ret = frsh_contract_init(&contract);
if (ret != 0) PUT_ERROR ("could not init contract");
- budget_min.tv_sec = 5;
- period_max = frsh_msec_to_rel_time(3369);
+ ret = frescan_fna_network_bytes_to_budget (NETWORK, 10, &budget_min);
+ if (ret != 0) PUT_ERROR ("could not transform bytes to budget");
+
+ period_max = frsh_msec_to_rel_time(3369); // 3,369 secs
ret = frsh_contract_set_basic_params
(&contract,