forked from cory/tildefriends
Formatting.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4086 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
f748fcf1f7
commit
94d7d2e3e0
@ -34,7 +34,8 @@ static void _tf_ssb_rpc_blobs_get(tf_ssb_connection_t* connection, uint8_t flags
|
|||||||
for (int i = 0; i < length; i++)
|
for (int i = 0; i < length; i++)
|
||||||
{
|
{
|
||||||
JSValue arg = JS_GetPropertyUint32(context, ids, i);
|
JSValue arg = JS_GetPropertyUint32(context, ids, i);
|
||||||
if (!JS_IsString(arg)) {
|
if (!JS_IsString(arg))
|
||||||
|
{
|
||||||
JSValue key = JS_GetPropertyStr(context, arg, "key");
|
JSValue key = JS_GetPropertyStr(context, arg, "key");
|
||||||
JS_FreeValue(context, arg);
|
JS_FreeValue(context, arg);
|
||||||
arg = key;
|
arg = key;
|
||||||
|
@ -564,7 +564,8 @@ void tf_ssb_test_bench(const tf_test_options_t* options)
|
|||||||
struct timespec start_time = { 0 };
|
struct timespec start_time = { 0 };
|
||||||
struct timespec end_time = { 0 };
|
struct timespec end_time = { 0 };
|
||||||
clock_gettime(CLOCK_REALTIME, &start_time);
|
clock_gettime(CLOCK_REALTIME, &start_time);
|
||||||
for (int i = 0; i < 10 * 1024; i++) {
|
for (int i = 0; i < 10 * 1024; i++)
|
||||||
|
{
|
||||||
tf_ssb_append_post(ssb0, "Hello, world!");
|
tf_ssb_append_post(ssb0, "Hello, world!");
|
||||||
}
|
}
|
||||||
clock_gettime(CLOCK_REALTIME, &end_time);
|
clock_gettime(CLOCK_REALTIME, &end_time);
|
||||||
|
Loading…
Reference in New Issue
Block a user